aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/concurrency/actor.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/concurrency/actor.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux
index 75bbf15d2..a079d2d28 100644
--- a/stdlib/source/lux/concurrency/actor.lux
+++ b/stdlib/source/lux/concurrency/actor.lux
@@ -13,7 +13,7 @@
(syntax ["cs" common]
(common ["csr" reader]
["csw" writer])))
- (type opaque)
+ (type abstract)
(lang [type]))
(// ["A" atom]
["P" promise "P/" Monad<Promise>]
@@ -29,7 +29,7 @@
(with-expansions
[<Message> (as-is (-> s (Actor s) (T.Task s)))
<Obituary> (as-is [Text s (List <Message>)])]
- (opaque: #export (Actor s)
+ (abstract: #export (Actor s)
{#.doc "An actor, defined as all the necessities it requires."}
{#mailbox (stm.Var <Message>)
#kill-switch (P.Promise Unit)
@@ -51,9 +51,9 @@
(All [s] (-> (Behavior s) s (IO (Actor s))))
(io (let [[handle end] behavior
self (: (Actor ($ +0))
- (@opaque {#mailbox (stm.var (:! (Message ($ +0)) []))
- #kill-switch (P.promise Unit)
- #obituary (P.promise (Obituary ($ +0)))}))
+ (@abstract {#mailbox (stm.var (:! (Message ($ +0)) []))
+ #kill-switch (P.promise Unit)
+ #obituary (P.promise (Obituary ($ +0)))}))
mailbox-channel (io.run (stm.follow (get@ #mailbox (@repr self))))
|mailbox| (stm.var mailbox-channel)
_ (P/map (function [_]