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.
ResultAsyncallows 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 differentResultandResultAsynctogether as Result, while also chaining the asynchronous operations together usingPromise.then.ResultAsyncis thenable (implementsPromiseLike<T>) so can be used in most places that aPromisecan, including withawait.Compatible with
neverthrow