Skip to main content

Function: applyCallAsync()

function applyCallAsync<TRet>(
root,
call,
options?
): Promise<TRet>;

Like applyCall, but accepts flows too and always returns a promise, which resolves to the result once the call (or the flow) ends. Every error is a rejection.

Type Parameters​

Type ParameterDefault typeDescription
TRetunknownReturn type.

Parameters​

ParameterTypeDescription
rootobjectRoot of the tree.
call| Call | ResolvedCallThe call.
options?ApplyCallOptionsOptions.

Returns​

Promise<TRet>

A promise of the result of the call.