Execute all provided promises with a max concurrency
Results will be in the same order as the provided promises; if one promise rejects,
execution is stopped and the returned promise is rejected as well.
Type parameters
T
Parameters
promises: Array<() => Promise<T>>
all promises to execute
Default value concurrent: number = concurrentDefault()
Execute all provided promises with a max concurrency Results will be in the same order as the provided promises; if one promise rejects, execution is stopped and the returned promise is rejected as well.