Home > @funnyecho/hamon > AsyncParallelBailHook
Asynchronous Parallel Bail Hook
Signature:
export declare class AsyncParallelBailHook<T, R> extends AsyncTapHook<T, R>
Invoke listeners in parallel asynchronously. Calling will bail with the first non-undefined value returned from listener, or failed with error if error occur first.
Method | Modifiers | Description |
---|---|---|
callAsync(args) | call listener with ...args and cb |
|
callPromise(args) | * call listener with ...args |