diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/concurrency/stm.lux | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/source/lux/concurrency/stm.lux b/stdlib/source/lux/concurrency/stm.lux index 3c6691acc..648d86d95 100644 --- a/stdlib/source/lux/concurrency/stm.lux +++ b/stdlib/source/lux/concurrency/stm.lux @@ -17,10 +17,13 @@ [type abstract]]) +(type: #export (Observer a) + (-> a (IO Any))) + (abstract: #export (Var a) {#.doc "A mutable cell containing a value, and observers that will be alerted of any change to it."} - (Atom [a (List (-> a (IO Any)))]) + (Atom [a (List (Observer a))]) (def: #export (var value) {#.doc "Creates a new STM var, with a default value."} |