Provides a way to continuously write to the input of a Process until the InputStream is closed.
- author Nicolas Grekas
- implements \IteratorAggregate<int, string>
Closes the write buffer.
|public getIterator() : Traversable|
Tells whether the write buffer is closed or not.
|public onEmpty(?callable $onEmpty = NULL)|
Sets a callback that is called when the write buffer becomes empty.
|public write(?mixed $input)|
Appends an input to the write buffer.
|private $input = |
|private $onEmpty = NULL|
|private $open = true|