asyncGroup
The asyncGroup() function runs synchronous or asynchronous Either values in parallel (promises, Future) and returns the first Left encountered. If all are Right, it aggregates their values into a typed object.
Interactive example
Parameters
group: Object where each property is anEither/Promise/Futureor a function returning any of them.
Return value
Rightwith an object gathering all values when they are allRight.- Otherwise the first
Leftthat fails in the order of the group's declaration (including synchronous and asynchronous).
See also
group- Synchronous versionrightAsyncPipe- Async pipeline onRightfuture- Compatible async wrapper
