AsyncResult.from<T, E extends BaseError>(promise: Promise<Result<T, E>>): AsyncResult<T, E>
Creates an AsyncResult from a Promise of Result.
E extends BaseError
The type of the error
AsyncResult<T, E>
An AsyncResult wrapping the promise