HH\Lib\IO\BufferedReader::readByteAsync

Facebook Engineer?

The containing class is available as IO\BufferedReader in the www repository.

Read a single byte from the handle

public function readByteAsync(
  ?int $timeout_ns = NULL,
): Awaitable<string>;

Fails with EPIPE if the handle is closed or otherwise unreadable.

Parameters

  • ?int $timeout_ns = NULL

Returns