Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 882 Bytes

hamon.asyncparallelbailhook.md

File metadata and controls

25 lines (15 loc) · 882 Bytes

Home > @funnyecho/hamon > AsyncParallelBailHook

AsyncParallelBailHook class

Asynchronous Parallel Bail Hook

Signature:

export declare class AsyncParallelBailHook<T, R> extends AsyncTapHook<T, R> 

Remarks

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.

Methods

Method Modifiers Description
callAsync(args) call listener with ...args and cb
callPromise(args) * call listener with ...args