HH\Lib\Async\KeyedPoll::add

Add a single awaitable to the poll

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

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

Parameters

Returns

  • void