Creates a promise that resolves to an Err instance.
The success value type that would be associated with the error branch.
The error payload type.
The error value to wrap in an Err result.
Err
A promise that resolves to new Err<T, E>(error).
new Err<T, E>(error)
Creates a promise that resolves to an Err instance.