Amp\Process\ProcessOutputStream class ProcessOutputStream implements Amp\ByteStream\OutputStream

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(Amp\Promise $resourceStreamPromise)
No documentation.
Type Parameter Description Default Value
Amp\Promise $resourceStreamPromise No documentation. none
write — public function write(string $data): Amp\Promise

Writes data to the stream.

Type Parameter Description Default Value
string $data Bytes to write. none
end — public function end(string $finalData = ""): Amp\Promise

Marks the stream as no longer writable. Optionally writes a final data chunk before. Note that this is not the same as forcefully closing the stream. This method waits for all pending writes to complete before closing the stream. Socket streams implementing this interface should only close the writable side of the stream.

Type Parameter Description Default Value
string $finalData Bytes to write. ""
close — public function close()
No documentation.