public function send($data) : \Generator
{
if (null === $this->channel) {
throw new StatusError('The fork has not been started or has already finished.');
}
if ($data instanceof ExitStatus) {
throw new InvalidArgumentError('Cannot send exit status objects.');
}
return yield from $this->channel->send($data);
}