aivika-transformers-5.7: Transformers for the Aivika simulation library

Copyright Copyright (c) 2009-2017 David Sorokin BSD3 David Sorokin experimental None Haskell2010

Simulation.Aivika.Trans.Cont

Description

Tested with: GHC 8.0.1

The Cont monad is a variation of the standard Cont monad and F# async workflow, where the result of applying the continuations is the Event computation.

Synopsis

# Documentation

It defines how the parent and child computations should be cancelled.

Constructors

 CancelTogether Cancel the both computations together. CancelChildAfterParent Cancel the child if its parent is cancelled. CancelParentAfterChild Cancel the parent if its child is cancelled. CancelInIsolation Cancel the computations in isolation.

data Cont m a Source #

The Cont type is similar to the standard Cont monad and F# async workflow but only the result of applying the continuations return the Event computation.

Instances