Amp\Parallel\Sync\ChannelledSocket class ChannelledSocket extends Amp\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 function close()

Closes the read and write resource streams.

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

{@inheritdoc}

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

{@inheritdoc}