Maybe write and read lock each other, try to use puts:
```
      bool done = false;
      while (!done) {
          puts("1");
          auto result = ["echo", "Hello World"].execute;
          if (result.status != 0)
          {
              writeln(2);
              throw new Exception("echo failed");
          }
          puts("2");
          writeln(result.output);
          puts("3");
          receiveTimeout(dur!"msecs"(-1),
            (LinkTerminated t) {
                writeln("Done");
                done = true;
            },
          );
          writeln(4);
      }
      writeln("ByeBye");
```

Reply via email to