- flow<R, Args>(generator): ((...args: Args) => CancellablePromise<R>)
Parameters
- generator: ((...args: Args) => Generator<any, R, any> | AsyncGenerator<any, R, any>)
- (...args): Generator<any, R, any> | AsyncGenerator<any, R, any>
Returns Generator<any, R, any> | AsyncGenerator<any, R, any>
Returns ((...args: Args) => CancellablePromise<R>)
- (...args): CancellablePromise<R>
Returns CancellablePromise<R>