failSafe

Function

Wrap an async function such that it will never reject

Parameters

Parameter Type Default Notes
fn Required GenericAsyncFunc

Async Function that we want to never fail

resolveWith Optional any {}

Object to resolve with in the event of a failure

Returns

Property Type Notes

Function defined in common/src/utils/fail-safe.ts:8