Explorar o código

makes start() of TerminalIsolate awaitable

devmil %!s(int64=4) %!d(string=hai) anos
pai
achega
1bd32a3e2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   @override
   bool get isReady => _lastState != null;
   bool get isReady => _lastState != null;
 
 
-  void start() async {
+  Future<void> start() async {
     final initialRefreshCompleted = Completer<bool>();
     final initialRefreshCompleted = Completer<bool>();
     var firstReceivePort = ReceivePort();
     var firstReceivePort = ReceivePort();
     _isolate = await Isolate.spawn(terminalMain, firstReceivePort.sendPort);
     _isolate = await Isolate.spawn(terminalMain, firstReceivePort.sendPort);