graninas / Hydra

Hydra is a full-fledged framework for building web services, multithreaded and concurrent applications with SQL and KV DB support.
BSD 3-Clause "New" or "Revised" License
193 stars 13 forks source link

Add untrackable StateVars #50

Open graninas opened 4 years ago

graninas commented 4 years ago

Currently, StateVars are tracked in the runtime. Spawning statevars should not be uncontrollable.

Add an untrackable variable. Possible solution:

newtype StateVar a
  = StateVar { _varId :: VarId }
  | UntrackedStateVar { _tvar :: TVar a }