Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 945 Bytes

hamon.asyncserieswaterfallhook.md

File metadata and controls

25 lines (15 loc) · 945 Bytes

Home > @funnyecho/hamon > AsyncSeriesWaterfallHook

AsyncSeriesWaterfallHook class

Asynchronous Waterfall Hook

Signature:

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

Remarks

Invoke listener in queue Asynchronously. Those non-undefined value returned from upstream listener, will waterfall to downstream as first element of arguments. Calling return with waterfall value of last listener.

Methods

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