awaitNext
can be used within an async or stream coroutine.
When reached, awaitNext
will register to receive the next element
from an async or a coroutine object.
awaitNext(strm, or, err)
In the context of an async
or stream
, awaitNext(x)
returns the resolved value of a promise x
, or stops with an
error.