The containing class is available as
IO\WriteHandle in the www repository.
Write all of the requested data
public function writeAllAsync( string $bytes, ?int $timeout_ns = NULL, ): Awaitable<void>;
A wrapper aroudn
writeAsync() that will:
- do multiple writes if necessary to write the entire provided buffer
- fail with EPIPE if it is not possible to write all the requested data
It is possible for this to never return, e.g. if called on a pipe or or socket which the other end keeps open forever. Set a timeout if you do not want this to happen.
?int $timeout_ns = NULL