Browse Source

makes start() of TerminalIsolate awaitable

devmil 4 years ago
parent
commit
1bd32a3e2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/terminal/terminal_isolate.dart

+ 1 - 1
lib/terminal/terminal_isolate.dart

@@ -337,7 +337,7 @@ class TerminalIsolate with Observable implements TerminalUiInteraction {
   @override
   bool get isReady => _lastState != null;
 
-  void start() async {
+  Future<void> start() async {
     final initialRefreshCompleted = Completer<bool>();
     var firstReceivePort = ReceivePort();
     _isolate = await Isolate.spawn(terminalMain, firstReceivePort.sendPort);