Note on semantic difference

This commit is contained in:
Tony Garnock-Jones 2019-05-03 10:32:16 +01:00
parent f847f3c049
commit 736c9de3dc
1 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,14 @@
;; interests generated by the way `during` is implemented,
;; only to general ones.
;;
;; NB: There's a semantic difference here! In the
;; commented-out version immediately below, we care about the
;; start and stop events of the *facet*, so will get "absent"
;; messages upon clean termination. In the other version,
;; with separate asserted/retracted handlers, we will *not*
;; get "absent" messages on clean termination, because the
;; assertion is still there even as the actor terminates!
;;
;; (during (from-broker node (present $who))
;; (on-start (log-info "~a: ~a present" name who))
;; (on-stop (log-info "~a: ~a absent" name who)))