-
Notifications
You must be signed in to change notification settings - Fork 0
Function.errAsync
GitHub Actions edited this page Oct 4, 2024
·
27 revisions
resultar / errAsync
errAsync<
T,E>(error):ResultAsync<T,E>
Returns a ResultAsync instance that is immediately resolved with a Result.err(error).
• T = never
• E = unknown
• error: E
The error to be wrapped in a Result.err.
ResultAsync<T, E>
A ResultAsync instance with the given error and value type T.