AsyncResult.all<T, E extends BaseError>(results: readonly (AsyncResult<T, E> | Promise<Result<T, E>>)[]): AsyncResult<T[], E>
Combines multiple AsyncResults into a single AsyncResult containing an array.
If all Results are Ok, returns Ok with an array of all values. If any Result is Err, returns the first Err encountered.
E extends BaseError
The type of the errors
AsyncResult<T[], E>
AsyncResult with array of values, or the first Err