Use :template in send!.
This commit is contained in:
parent
6b3988caf7
commit
2fa1b033eb
|
@ -33,8 +33,7 @@
|
|||
(action (ds)
|
||||
(spawn (define root-facet this-facet)
|
||||
(at ds
|
||||
(when (asserted (BoxState $value))
|
||||
(send! ds (SetBox->preserves (SetBox (+ value 1)))))
|
||||
(when (asserted (BoxState $value)) (send! ds (SetBox (+ value 1))))
|
||||
(during (BoxState _)
|
||||
(on-stop (log-info "Client detected box termination")
|
||||
(stop-facet root-facet)))))))
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
(turn-sync! this-turn peer (action (_reply) expr ...)))
|
||||
|
||||
(define-syntax-rule (send! peer assertion)
|
||||
(turn-message! this-turn peer assertion))
|
||||
(turn-message! this-turn peer (:template assertion)))
|
||||
|
||||
(define-syntax-rule (spawn setup-expr ...)
|
||||
(turn-spawn! this-turn (action () setup-expr ...)))
|
||||
|
|
Loading…
Reference in New Issue