aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/concurrency/async.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/control/concurrency/async.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/control/concurrency/async.lux b/stdlib/source/library/lux/control/concurrency/async.lux
index 6da6384cb..b959ef3b7 100644
--- a/stdlib/source/library/lux/control/concurrency/async.lux
+++ b/stdlib/source/library/lux/control/concurrency/async.lux
@@ -30,7 +30,7 @@
(All (_ a) (-> (Async a) (Resolver a)))
(function (resolve value)
(let [async (:representation async)]
- (do {! io.monad}
+ (do [! io.monad]
[(^@ old [_value _observers]) (atom.read! async)]
(case _value
(#.Some _)
@@ -64,7 +64,7 @@
(def: .public (upon! f async)
(All (_ a) (-> (-> a (IO Any)) (Async a) (IO Any)))
- (do {! io.monad}
+ (do [! io.monad]
[.let [async (:representation async)]
(^@ old [_value _observers]) (atom.read! async)]
(case _value