libp2p/utils/future

Search:
Group by:
Source   Edit  

Types

AllFuturesFailedError = object of CatchableError
Source   Edit  

Procs

proc anyCompleted[T](futs: seq[T]): InternalRaisesFuture[T,
    (AllFuturesFailedError, CancelledError)] {....stackTrace: false, raises: [],
    gcsafe, 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