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 Parameter | Default type | Description |
|---|---|---|
TRet | unknown | Return type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
root | object | Root of the tree. |
call | | Call | ResolvedCall | The call. |
options? | ApplyCallOptions | Options. |
Returns
Promise<TRet>
A promise of the result of the call.