HH\Lib\IO\BufferedReader::readUntilAsync

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