HH\Lib\IO\WriteHandle
An interface for a writable Handle
Order of operations is guaranteed, except for writeImplBlocking
;
writeImplBlocking()
will immediately try to write to the handle.
Interface Synopsis
namespace HH\Lib\IO;
interface WriteHandle implements Handle {...}
Public Methods
->writeAllAsync(string $bytes, ?int $timeout_ns = NULL): Awaitable<void>
Write all of the requested data->writeAllowPartialSuccessAsync(string $bytes, ?int $timeout_ns = NULL): Awaitable<int>
Write data, waiting if necessary
Protected Methods
->writeImpl(string $bytes): int
An immediate unordered write