HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulepolysemy-1.9.2.0Haskell2010

Polysemy.Async

  • 1 type
  • 5 values
  • Packagepolysemy-1.9.2.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAsync.hs

Effect

1 declaration
datadata Async (m :: Type -> Type) a where
#

An effect for spawning asynchronous computations.

The Maybe returned by async is due to the fact that we can't be sure an Error effect didn't fail locally.

  • Async :: m a -> Async m ano verb

    Run the given action asynchronously and return a thread handle.

  • Await :: Async a -> Async m aawait

    Wait for the thread referenced by the given handle to terminate.

  • Cancel :: Async a -> Async m ano verb

    Cancel the thread referenced by the given handle.

Actions

3 declarations

Helpers

1 declaration

Interpretations

1 declaration