libp2p/utils/future

    Dark Mode
Search:
Group by:
  Source   Edit

Types

AllFuturesFailedError = object of CatchableError
  Source   Edit

Procs

proc anyCompleted[T](futs: seq[Future[T]]): Future[Future[T]] {.
    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