HH\Lib\IO\ReadHandle
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as IO\ReadHandle()
in Facebook's www repository.
An IO\Handle
that is readable
Interface Synopsis
namespace HH\Lib\IO;
interface ReadHandle implements Handle {...}
Public Methods
->rawReadBlocking(?int $max_bytes = NULL): string
An immediate, unordered blocking read->readAsync(?int $max_bytes = NULL, ?float $timeout_seconds = NULL): Awaitable<string>
Read until we reach$max_bytes
, timeout, or the end of the file->readLineAsync(?int $max_bytes = NULL, ?float $timeout_seconds = NULL): Awaitable<string>
Read until we reach$max_bytes
, the end of the file, or the end of the line