HH\Lib\Async\KeyedPoll

Requires the Hack Standard Library to be installed.

A keyed variant of Poll

See Poll if you do not need to preserve keys.

Keys are retrieved with:

foreach (await $keyed_poll as $k => $v) {

===== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING =====

See detailed warning for BasePoll

===== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING =====

Interface Synopsis

namespace HH\Lib\Async;

final class KeyedPoll extends BasePoll<Tk, Tv> implements AsyncKeyedIterator<Tk, Tv> {...}

Public Methods