#!/usr/bin/env php run()); } catch (Sync\ChannelException $exception) { exit(1); // Parent context died, simply exit. } catch (Throwable $exception) { $result = new Sync\Internal\ExitFailure($exception); } try { yield $channel->send($result); } catch (Throwable $exception) { exit(1); // Parent context died, simply exit. } });