Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

tryCatchAsync

function tryCatchAsync<T>(fn, normalize?): Promise<Result<T, EngineError>>;

Defined in: packages/engine/src/errors/Result.ts:129

Async sibling of tryCatch.

Type Parameter
T
ParameterTypeDefault value
fn() => Promise<T>undefined
normalize?(e) => EngineErrornormalizeUnknownError

Promise<Result<T, EngineError>>