Amp\Parallel\Sync\ChannelledSocket classChannelledSocket extendsAmp\Parallel\Sync\ChannelledStream

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(resource$read,resource$write)

Creates a new channel from the given stream objects. Note that $read and $write can be the same object.

Type Parameter Description Default Value
resource $read Readable stream resource. none
resource $write Writable stream resource. none
close —public functionclose()

Closes the read and write resource streams.

send —public functionsend($data):Amp\Promise

{@inheritdoc}

Type Parameter Description Default Value
mixed $data No documentation. none
receive —public functionreceive():Amp\Promise

{@inheritdoc}