Aerys\NullBody classNullBody extendsAerys\Body

Summary

Properties

Methods

Methods

__construct —public function__construct()
No documentation.
when —public functionwhen(callable$func,$data =null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
watch —public functionwatch(callable$func,$data =null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
valid —public functionvalid():Amp\Promise

Will more data arrive on the stream?

Stream consumers should await the result of the valid() promise before consuming stream output.

consume —public functionconsume():mixed

Consume buffered stream data