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