Skip to main content

Home > flowp > Barrier > then

Barrier.then() method

Signature:

then<TResult1 = void, TResult2 = never>(onfulfilled?: (() => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;

Parameters

ParameterTypeDescription
onfulfilled(() => TResult1 | PromiseLike<TResult1>) | null | undefined
onrejected((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined

Returns:

PromiseLike<TResult1 | TResult2>