HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulepolysemy-1.9.2.0Haskell2010

Polysemy.Async

Contents
  1. Effect
  2. Actions
  3. Helpers
  4. Interpretations
Synopsis
  • Packagepolysemy-1.9.2.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAsync.hs

Effect

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

Helpers

Interpretations