HH\Lib\IO\BufferedReader::readUntilAsync

Meta Engineer?

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

Read until the specified suffix is seen

public function readUntilAsync(
  string $suffix,
): Awaitable<?string>;

The trailing suffix is read (so won't be returned by other calls), but is not included in the return value.

This call returns null if the suffix is not seen, even if there is other data.

Parameters

  • string $suffix

Returns