actor now needs explicit become when changing behavior (state)

This commit is contained in:
Helmut Merz 2025-06-16 10:40:36 +02:00
parent f86428a2c7
commit 06aa41de77

View file

@ -30,7 +30,8 @@
(setf state (+ state msg)) (setf state (+ state msg))
(if (/= 0 state) (if (/= 0 state)
(forward state state syns env)) (forward state state syns env))
(lambda (msg) (cumulate msg state syns env))) (actor:become
(lambda (msg) (cumulate msg state syns env))))
;;;; publish/subscribe - pubsub service ;;;; publish/subscribe - pubsub service