aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/concurrency/actor.lux
diff options
context:
space:
mode:
authorEduardo Julian2017-01-12 23:10:38 -0400
committerEduardo Julian2017-01-12 23:10:38 -0400
commit4a039138dd87e2c2f232f9ce7198b4e36ca403f9 (patch)
tree94789923d313f21155e6022f390a0379d1e8f122 /stdlib/source/lux/concurrency/actor.lux
parentc12eeb2b91cc6944363476307ede89b3a6b0524a (diff)
- Simplified the macros for asking about or ensuring AST tokens.
Diffstat (limited to 'stdlib/source/lux/concurrency/actor.lux')
-rw-r--r--stdlib/source/lux/concurrency/actor.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux
index 650065a0e..e55386d9d 100644
--- a/stdlib/source/lux/concurrency/actor.lux
+++ b/stdlib/source/lux/concurrency/actor.lux
@@ -133,7 +133,7 @@
(wrap (#;Right new-server))))
))))
#end (lambda [_ server] (exec (io;run (poison server))
- (:: Monad<Promise> wrap [])))})))]
+ (:: Monad<Promise> wrap [])))})))]
(update@ #obituary (: (-> (P;Promise [(Maybe Text) (Actor ($ +0) ($ +1)) (List ($ +1))])
(P;Promise [(Maybe Text) ($ +0) (List ($ +1))]))
(lambda [process]
@@ -154,7 +154,7 @@
(def: method^
(Syntax Method)
(s;form (do s;Monad<Syntax>
- [_ (s;symbol! ["" "method:"])
+ [_ (s;sample! (' method:))
vars (s;default (list) (s;tuple (s;some s;local-symbol)))
[name args] (s;form ($_ s;seq
s;local-symbol
@@ -171,7 +171,7 @@
(def: stop^
(Syntax AST)
(s;form (do s;Monad<Syntax>
- [_ (s;symbol! ["" "stop:"])]
+ [_ (s;sample! (' stop:))]
s;any)))
(def: actor-decl^