Icicle\Concurrent\Sync\Channel::send PHP Method

send() public method

public send ( mixed $data ) : Generator
$data mixed
return Generator
    public function send($data) : \Generator;

Usage Example

Esempio n. 1
0
 /**
  * {@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);
 }
All Usage Examples Of Icicle\Concurrent\Sync\Channel::send