aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/concurrency/stm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/concurrency/stm.lux')
-rw-r--r--stdlib/source/lux/concurrency/stm.lux5
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."}