callAsync
Invokes a function returning a Promise with the provided arguments.
Async-typed sibling of call — equivalent to fn(...args) for
promise-returning functions, but the signature constrains the return to
Promise<R> so it composes cleanly inside async pipelines.
Usage
callAsync<A extends readonly unknown[], R>(fn: (...args: A) => Promise<R>, ...args: A)
Invokes a function returning a Promise with the provided arguments.
Async-typed sibling of call — equivalent to fn(...args) for
promise-returning functions, but the signature constrains the return to
Promise<R> so it composes cleanly inside async pipelines.
Parameters
fn(...args: A) => Promise<R>required
the async function to invoke.
argsArequired
the arguments passed to fn.
Returns
the promise returned by fn.