HH\AsyncIterator::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() $value)

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

Return Values