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.lux38
1 files changed, 19 insertions, 19 deletions
diff --git a/stdlib/source/library/lux/control/concurrency/async.lux b/stdlib/source/library/lux/control/concurrency/async.lux
index e19682691..b131ddd1e 100644
--- a/stdlib/source/library/lux/control/concurrency/async.lux
+++ b/stdlib/source/library/lux/control/concurrency/async.lux
@@ -1,21 +1,21 @@
(.using
- [library
- [lux {"-" and or}
- [abstract
- [functor {"+" Functor}]
- [apply {"+" Apply}]
- ["[0]" monad {"+" Monad do}]]
- [control
- [pipe {"+" case>}]
- ["[0]" function]
- ["[0]" io {"+" IO io}]]
- [data
- ["[0]" product]]
- [type {"+" :sharing}
- abstract]]]
- [//
- ["[0]" thread]
- ["[0]" atom {"+" Atom atom}]])
+ [library
+ [lux {"-" and or}
+ [abstract
+ [functor {"+" Functor}]
+ [apply {"+" Apply}]
+ ["[0]" monad {"+" Monad do}]]
+ [control
+ [pipe {"+" case>}]
+ ["[0]" function]
+ ["[0]" io {"+" IO io}]]
+ [data
+ ["[0]" product]]
+ [type {"+" :sharing}
+ abstract]]]
+ [//
+ ["[0]" thread]
+ ["[0]" atom {"+" Atom atom}]])
(abstract: .public (Async a)
(Atom [(Maybe a) (List (-> a (IO Any)))])
@@ -29,7 +29,7 @@
(function (resolve value)
(let [async (:representation async)]
(do [! io.monad]
- [(^@ old [_value _observers]) (atom.read! async)]
+ [(^let old [_value _observers]) (atom.read! async)]
(case _value
{.#Some _}
(in #0)
@@ -64,7 +64,7 @@
(All (_ a) (-> (-> a (IO Any)) (Async a) (IO Any)))
(do [! io.monad]
[.let [async (:representation async)]
- (^@ old [_value _observers]) (atom.read! async)]
+ (^let old [_value _observers]) (atom.read! async)]
(case _value
{.#Some value}
(f value)