Types
AllFuturesFailedError = object of CatchableError
- Source Edit
Procs
proc anyCompleted[T](futs: seq[Future[T]]): InternalRaisesFuture[Future[T], (AllFuturesFailedError, CancelledError)] {.stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [].}
- Returns a future that will complete with the first future that completes. If all futures fail or futs is empty, the returned future will fail with AllFuturesFailedError. Source Edit