HH\AsyncKeyedIterator::next

Move the async iterator to the next Awaitable position.

Description

public function next(): Awaitable<?tuple>

Move the async iterator to the next Awaitable position.

foreach ($async_iter await $async_iter->next() $key=>$value)

The above is the longhand syntax for await as $key=>$value.

Return Values