rsagl-0.4.0.3: The RogueStar Animation and Graphics Library

Safe HaskellSafe-Infered

RSAGL.Auxiliary.RecombinantState

Synopsis

Documentation

class RecombinantState s whereSource

Describes concurrency-aware state. The goal is to take some stateful information, clone it into a variety of concurrent threads, and then recombine with the (possibly modified) state as the concurrent threads complete.

Associated Types

type SubState s :: *Source

Methods

clone :: s -> SubState sSource

recombine :: s -> SubState s -> sSource