data-effects-0.1.2.0: A basic framework for effect systems based on effects represented by GADTs.
Copyright(c) 2023 Yamada Ryo
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Effect.Concurrent.Thread

Description

 

Documentation

data Thread' tid f (a :: Type) where Source #

Constructors

ForkThread :: f () -> Thread' tid f tid 

Instances

Instances details
() => HFunctor (Thread' tid) Source # 
Instance details

Defined in Data.Effect.Concurrent.Thread

Methods

hfmap :: forall (f :: Type -> Type) (g :: Type -> Type). (f :-> g) -> Thread' tid f :-> Thread' tid g #

forkThread :: forall (tid :: Type) f. SendSigBy ThreadKey (Thread' tid) f => f () -> f tid Source #

forkThread'' :: forall key (tid :: Type) f. SendSigBy key (Thread' tid) f => f () -> f tid Source #

forkThread' :: forall tag (tid :: Type) f. SendSig (TagH (Thread' tid) tag) f => f () -> f tid Source #

forkThread'_ :: forall (tid :: Type) f. SendSig (Thread' tid) f => f () -> f tid Source #