Icicle\Concurrent\Forking\Fork::send PHP Method

send() public method

public send ( $data ) : Generator
return Generator
    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);
    }