A writable I/O stream.
This class, along with
ReadablePipe, implement asynchronous streams over native PHP stream resources. Many of Icicle's core stream types extend or use this class, as most are based on underlying stream resources.
While this class should work without error on any valid PHP stream resource, only some types of streams are properly asynchronous, and stream operations are only guaranteed to be non-blocking for certain types of streams. As such, only stream resources created from pipes and sockets are supported, and not file streams.
new WritablePipe(resource $resource, bool $autoClose = true)
Creates a writable stream from the given stream resource.Next: ReadableStream