multitasking
Safe HaskellNone
LanguageGHC2021

Multitasking.AsyncOperations

Documentation

class Await t where Source #

Minimal complete definition

await | probe

Associated Types

type Payload t Source #

Methods

await :: MonadSTM m => t -> m (Payload t) Source #

Wait for the value

default await :: MonadSTM m => t -> m (Payload t) Source #

probe :: MonadSTM m => t -> m (Maybe (Payload t)) Source #

Probe for the value

default probe :: MonadSTM m => t -> m (Maybe (Payload t)) Source #

Instances

Instances details
Await Coordinator Source # 
Instance details

Defined in Multitasking.Core

Associated Types

type Payload Coordinator 
Instance details

Defined in Multitasking.Core

Await (Task a) Source # 
Instance details

Defined in Multitasking.Core

Associated Types

type Payload (Task a) 
Instance details

Defined in Multitasking.Core

type Payload (Task a) = a

Methods

await :: MonadSTM m => Task a -> m (Payload (Task a)) Source #

probe :: MonadSTM m => Task a -> m (Maybe (Payload (Task a))) Source #

Await (SinkTask a) Source # 
Instance details

Defined in Multitasking.Workers

Associated Types

type Payload (SinkTask a) 
Instance details

Defined in Multitasking.Workers

type Payload (SinkTask a) = Void

Methods

await :: MonadSTM m => SinkTask a -> m (Payload (SinkTask a)) Source #

probe :: MonadSTM m => SinkTask a -> m (Maybe (Payload (SinkTask a))) Source #

Await (SourceTask a) Source # 
Instance details

Defined in Multitasking.Workers

Associated Types

type Payload (SourceTask a) 
Instance details

Defined in Multitasking.Workers

Await (PipeTask a b) Source # 
Instance details

Defined in Multitasking.Workers

Associated Types

type Payload (PipeTask a b) 
Instance details

Defined in Multitasking.Workers

type Payload (PipeTask a b) = Void

Methods

await :: MonadSTM m => PipeTask a b -> m (Payload (PipeTask a b)) Source #

probe :: MonadSTM m => PipeTask a b -> m (Maybe (Payload (PipeTask a b))) Source #