Variable: parallelOrThrow()
constparallelOrThrow: (...args) =>Promise<unknown[]>
Defined in: async/parallel/index.ts:75
Throwing variant of parallel for backward compatibility.
Use this when you want exceptions instead of Result pattern. Prefer the Result-returning parallel for better error handling.
This is implemented using the orThrow utility from Result module,
which converts any Result-returning function to a throwing variant.
Parameters
args
...[readonly () => Promise<unknown>[], ConcurrencyOptions]
Returns
Promise<unknown[]>
Promise resolving to array of results
Throws
Error if any task fails
Example
// Equivalent to using orThrow directly
const parallelOrThrow = orThrow(parallel)
See
- parallel - Result-returning variant (recommended)
- orThrow - utility for creating throwing variants