ResultAsync allows you to work with asynchronous Results in a type safe way
ResultAsync<T,E> is a wrapper around Promise<Result<T,E>> which provides the same methods for chaining different
Result and ResultAsync together as Result, while also chaining the asynchronous operations together using
Promise.then.
ResultAsync is thenable (implements PromiseLike<T>) so can be used in most places that a Promise can, including with await.
ResultAsync
allows you to work with asynchronous Results in a type safe wayResultAsync<T,E>
is a wrapper aroundPromise<Result<T,E>>
which provides the same methods for chaining differentResult
andResultAsync
together as Result, while also chaining the asynchronous operations together usingPromise.then
.ResultAsync
is thenable (implementsPromiseLike<T>
) so can be used in most places that aPromise
can, including withawait
.Compatible with
neverthrow