Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. waitAny :: [Async a] -> IO (Async a, a)

    async Control.Concurrent.Async

    Wait for any of the supplied Asyncs to complete. If the first to complete throws an exception, then that exception is re-thrown by waitAny. The input list must be non-empty. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.

  2. waitAnyCancel :: [Async a] -> IO (Async a, a)

    async Control.Concurrent.Async

    Like waitAny, but also cancels the other asynchronous operations as soon as one has completed.

  3. waitAnyCatch :: [Async a] -> IO (Async a, Either SomeException a)

    async Control.Concurrent.Async

    Wait for any of the supplied asynchronous operations to complete. The value returned is a pair of the Async that completed, and the result that would be returned by wait on that Async. The input list must be non-empty. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.

  4. waitAnyCatchCancel :: [Async a] -> IO (Async a, Either SomeException a)

    async Control.Concurrent.Async

    Like waitAnyCatch, but also cancels the other asynchronous operations as soon as one has completed.

  5. waitAnyCatchSTM :: [Async a] -> STM (Async a, Either SomeException a)

    async Control.Concurrent.Async

    A version of waitAnyCatch that can be used inside an STM transaction.

  6. waitAnySTM :: [Async a] -> STM (Async a, a)

    async Control.Concurrent.Async

    A version of waitAny that can be used inside an STM transaction.

  7. cancelMany :: [Async a] -> IO ()

    async Control.Concurrent.Async.Internal

    Cancel multiple asynchronous actions by throwing the AsyncCancelled exception to each of them in turn, then waiting for all the Async threads to complete.

  8. waitAny :: [Async a] -> IO (Async a, a)

    async Control.Concurrent.Async.Internal

    Wait for any of the supplied Asyncs to complete. If the first to complete throws an exception, then that exception is re-thrown by waitAny. The input list must be non-empty. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.

  9. waitAnyCancel :: [Async a] -> IO (Async a, a)

    async Control.Concurrent.Async.Internal

    Like waitAny, but also cancels the other asynchronous operations as soon as one has completed.

  10. waitAnyCatch :: [Async a] -> IO (Async a, Either SomeException a)

    async Control.Concurrent.Async.Internal

    Wait for any of the supplied asynchronous operations to complete. The value returned is a pair of the Async that completed, and the result that would be returned by wait on that Async. The input list must be non-empty. If multiple Asyncs complete or have completed, then the value returned corresponds to the first completed Async in the list.

Page 102 of many | Previous | Next