baml.future.all
Await every future and return their values in input order. On the first observed typed error, cancel the remaining futures and rethrow that error. Use `all_settled` to let every input settle and inspect each outcome.
Reference version
Signature
function baml.future.all<T, E>(
futures: baml.future.Future<T, E>[]
) -> baml.future.Future<T[], E> throws never
Await every future and return their values in input order. On the first
observed typed error, cancel the remaining futures and rethrow that error.
Use all_settled to let every input settle and inspect each outcome.
Failures are observed in input order, not strictly first-to-fail in wall-clock time. Panics propagate normally.
Source:<builtin>/baml/ns_future/future.bamlbytes 4703–6373