Opens this Flow: it calls the provided factory function with a corresponding FlowContext.
The provided signal is used to abort the current pending iteration.
The AbortSignal that must be used to abort the current pending iteration.
The arguments to pass to the factory function.
An AsyncEnumeratorObject that will be used to iterate over the flow.
A flow is a wrapper around an
AsyncGeneratorfactory.When opening a Flow, the provided factory is called with a
FlowContextand returns a newAsyncGenerator. TheFlowContextexposes functions to read the values sent throughiterator.next(value)anditerator.return(value). Moreover, it receives anAbortSignalthat must be used to abort a pending iteration of the flow.