Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: pkg/analyzer/lib/instrumentation/file_instrumentation.dart

Issue 1413403007: Wait for InstrumentationService.shutdown() before exit(0). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/instrumentation/file_instrumentation.dart
diff --git a/pkg/analyzer/lib/instrumentation/file_instrumentation.dart b/pkg/analyzer/lib/instrumentation/file_instrumentation.dart
index ba23b68f3b5dfe502e462f7d0410305daeac054d..72691156d66f7d7248305e3aa5d17c5f9420ca1f 100644
--- a/pkg/analyzer/lib/instrumentation/file_instrumentation.dart
+++ b/pkg/analyzer/lib/instrumentation/file_instrumentation.dart
@@ -4,6 +4,7 @@
library file_instrumentation;
+import 'dart:async';
import 'dart:io';
import 'package:analyzer/instrumentation/instrumentation.dart';
@@ -30,8 +31,8 @@ class FileInstrumentationServer implements InstrumentationServer {
}
@override
- void shutdown() {
- _sink.close();
+ Future shutdown() async {
+ await _sink.close();
_sink = null;
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analyzer/lib/instrumentation/instrumentation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698