Pudu programming language
Menu
API reference

Std.Concurrent.Future.firstSuccess

1 declaration

fn

firstSuccess: &Std.Concurrent.Cancel.Token -> &Array[fn(Std.Concurrent.Cancel.Token) -> T] -> Result[T, Std.Concurrent.ConcurrentError]

Run every action and answer the first to succeed; when none does, the first failure in input order.

Back to Std.Concurrent.FutureSearch related declarations