AsyncIterable
Namespace: global
Declared types
Type | Description |
---|---|
CancellationToken |
Values and functions
Creates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#specifications
Parameters
onNext : unit -> Promise<'T>
Creates AsyncIterable with a cleaning function for cancellation (JS caller invokes break
or return
during iteration)
Parameters
onCancel : unit -> unit
onNext : unit -> Promise<'T>
Iterates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
Parameters
action : CancellationToken<> -> ('T -> unit)
iterable : 'T