Produce a Task<T, E>
from a Promise<T>
and use a fallback
value if the task rejects, ignoring the rejection reason.
Notes:
unknown
, use the overload which accepts only the
promise.This will be removed at 9.0. Switch to the module-level function
safelyTryOr
, which accepts a callback instead.
Produce a
Task<T, E>
from aPromise<T>
and use a fallback value if the task rejects, ignoring the rejection reason.Notes:
unknown
, use the overload which accepts only the promise.