X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=8sync%2Factors.scm;h=8f1538cd5c6b48c7374ec89a36b050079f038a72;hb=38afa0b278e17953b64764d800beaaa6368f70be;hp=f9a95ceb681ef0bf99cc52205d3ed249e7abe704;hpb=1a0bb808ff75738d2ac3b62a76a405033b5d712b;p=8sync.git diff --git a/8sync/actors.scm b/8sync/actors.scm index f9a95ce..8f1538c 100644 --- a/8sync/actors.scm +++ b/8sync/actors.scm @@ -677,11 +677,10 @@ create-actor*)." Like create-actor, but permits supplying an id-cookie." (%create-actor actor-class init-args id-cookie #t)) -(define* (self-destruct actor #:key (cleanup #t)) +(define (self-destruct actor) "Remove an actor from the hive. -Unless #:cleanup is set to #f, this will first have the actor handle -its '*cleanup* action handler." +The actor will also call its `actor-cleanup!' method." (signal-condition! (address-dead? (actor-id actor))) (put-message (*hive-channel*) (list 'remove-actor (actor-id-actor actor))) ;; Set *actor-prompt* to nothing to prevent actor-cleanup! from sending