#!/usr/bin/env php getStdout(), ByteStream\getStdout())); print "Waiting 2 seconds to send start data...\n"; yield new Delayed(2000); yield $context->send("Start data"); // Data sent to child process, received on line 9 of blocking-process.php \printf("Received the following from child: %s\n", yield $context->receive()); // Sent on line 14 of blocking-process.php \printf("Process ended with value %d!\n", yield $context->join()); } finally { Loop::cancel($timer); } });