The same as EitherAsync.sequence
, but it will run all async operations at the same time rather than sequentially
Constructs an EitherAsync
object from a function that returns an Either wrapped in a Promise
Takes a list of EitherAsync
s and returns a Promise that will resolve with all Left
values. Internally it uses Promise.all
to wait for all results
Constructs an EitherAsync
object from an Either
Takes a list of EitherAsync
s and returns a Promise that will resolve with all Right
values. Internally it uses Promise.all
to wait for all results
Turns a list of EitherAsync
s into an EitherAsync
of list. The returned Promise
will be rejected as soon as a single EitherAsync
resolves to a Left
, it will not wait for all Promises to resolve and since EitherAsync
is lazy, unlike Promise
, the remaining async operations will not be executed at all
Constructs an
EitherAsync
object from a function that takes an object full of helpers that let you lift things into theEitherAsync
context and returns a Promise