From: Christopher Allan Webber Date: Wed, 1 Nov 2017 19:04:17 +0000 (-0500) Subject: actors: Reflect removal of choice of whether to cleanup in self-destruct X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=38afa0b278e17953b64764d800beaaa6368f70be;p=8sync.git actors: Reflect removal of choice of whether to cleanup in self-destruct * 8sync/actors.scm (self-destruct): The option of whether or not to all cleanup on an actor was removed; reflect that in arguments and documentation. --- 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