-
Notifications
You must be signed in to change notification settings - Fork 87
Faster DevTools launch #747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| final ConnectRequest request; | ||
|
|
||
| final _startCompleter = Completer(); | ||
| final SseConnection _connection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: startCompleter sounds like an action, which is a bit confusing. Maybe _startupCompleter, or _startedCompleter? Or even just '_startup', as it's private in a pretty narrow scope, and Dart style avoids reiterating types in variable names. if (_startup.isCompleted) reads pretty well. And a comment wouldn't hurt.
| final VM _vm; | ||
|
|
||
| // TODO(flutter/devtools/issues/1207) - Remove. | ||
| final _vmReadyCompleter = Completer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completer of bool? void?
| ); | ||
|
|
||
| unawaited(appConnection.onStart.then((_) async { | ||
| unawaited((await _debugger).resumeFromStart()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]: this can actually await
CreateIsolateto complete or the debugger to be enabled before creating theChromeProxyServicecorrectTabevals as they are no longer necessaryRunResponseas the run state is now properly stored in theAppConnection