ソースを参照

makes start() of TerminalIsolate awaitable

devmil 4 年 前
コミット
1bd32a3e2f
1 ファイル変更1 行追加1 行削除
  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);