HH\Lib\Experimental\IO\ReadHandle::readLineAsync

Read until we reach $max_bytes, the end of the file, or the end of the line

public function readLineAsync(
  ?int $max_bytes = NULL,
  ?float $timeout_seconds = NULL,
): Awaitable<string>;

'End of line' is platform-specific, and matches the C fgets() function; the newline character/characters are included in the return value.

Parameters

  • ?int $max_bytes = NULL
  • ?float $timeout_seconds = NULL

Returns