#!/usr/bin/env php getStdout(), ByteStream\getStdout())); yield new Delayed(100); // Give the process time to start and access the parcel. yield $parcel->synchronized(function (int $value) { return $value + 1; }); yield $context->join(); // Wait for child process to finish. \printf("Final value of parcel: %d\n", yield $parcel->unwrap()); });