runConcurrentQueries
Run asynchronous operations with concurrency and retry limits.
Pass either { total, callback } or { promises }, plus optional limit, retries, onStart, onSuccess and onError. Results are returned in input order. Failed operations are retried; after the last attempt the promise is rejected unless onError is provided, in which case its error handling decides whether to abort.