From 38afa0b278e17953b64764d800beaaa6368f70be Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 1 Nov 2017 14:04:17 -0500 Subject: [PATCH] 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. --- 8sync/actors.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.31.1