-
Notifications
You must be signed in to change notification settings - Fork 82
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
@@ -14,17 +15,19 @@ import '../../data/serializers.dart'; | |||
class AppConnection { | |||
/// The initial connection request sent from the application in the browser. | |||
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.
@@ -42,15 +43,20 @@ class ChromeProxyService implements VmServiceInterface { | |||
/// are dynamic and roughly map to chrome tabs. | |||
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?
uri, | ||
instanceHelper, | ||
); | ||
|
||
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
CreateIsolate
to complete or the debugger to be enabled before creating theChromeProxyService
correctTab
evals as they are no longer necessaryRunResponse
as the run state is now properly stored in theAppConnection