diff options
author | Eduardo Julian | 2018-05-02 01:26:14 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-05-02 01:26:14 -0400 |
commit | 0f1be1eddc30bcff15b5da36b80f2b286fe0908d (patch) | |
tree | 1cf4ada83e13f23e2299dcb2f8118a13182e04bc /stdlib/source/lux/concurrency/actor.lux | |
parent | 4331551e030860116f5b6d23ad0d1259e1e7c048 (diff) |
- Made the names of all exceptions lower-case.
Diffstat (limited to 'stdlib/source/lux/concurrency/actor.lux')
-rw-r--r-- | stdlib/source/lux/concurrency/actor.lux | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux index ed62332a8..a50b7a046 100644 --- a/stdlib/source/lux/concurrency/actor.lux +++ b/stdlib/source/lux/concurrency/actor.lux @@ -19,9 +19,9 @@ [promise #+ Promise promise "promise/" Monad<Promise>] [task #+ Task])) -(exception: #export Poisoned) +(exception: #export poisoned) -(exception: #export (Dead {actor-name Text} +(exception: #export (dead {actor-name Text} {message-name Text}) (format " Actor: " actor-name "\n" "Message: " message-name "\n")) @@ -137,7 +137,7 @@ but allows the actor to handle previous messages."} (All [s] (-> (Actor s) (IO Bool))) (send (function (_ state self) - (task.throw Poisoned [])) + (task.throw poisoned [])) actor)) ## [Syntax] @@ -206,7 +206,7 @@ ((stop cause state) (:: promise.Monad<Promise> wrap - (log! (if (ex.match? ..Poisoned cause) + (log! (if (ex.match? ..poisoned cause) (format "Counter was poisoned: " (%n state)) cause))))) @@ -363,7 +363,7 @@ (~ g!self))] (if (~ g!sent?) ((~' wrap) (~ g!task)) - ((~' wrap) (task.throw ..Dead [(~ (code.text (%ident actor-name))) + ((~' wrap) (task.throw ..dead [(~ (code.text (%ident actor-name))) (~ (code.text (%ident message-name)))])))))))) )) ))) |