Note on semantic difference
This commit is contained in:
parent
f847f3c049
commit
736c9de3dc
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue