actors: Reflect removal of choice of whether to cleanup in self-destruct
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 1 Nov 2017 19:04:17 +0000 (14:04 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 1 Nov 2017 19:05:10 +0000 (14:05 -0500)
* 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

index f9a95ceb681ef0bf99cc52205d3ed249e7abe704..8f1538cd5c6b48c7374ec89a36b050079f038a72 100644 (file)
@@ -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