HH\Lib\Async\KeyedPoll::add

Meta Engineer?

The containing class is available as Async\KeyedPoll in the www repository.

Add a single awaitable to the poll

public function add(
  Tk $key,
  Awaitable<Tv> $awaitable,
): void;

The key is retrieved with foreach ($poll await as $k => $v) {}

Parameters

Returns

  • void