actors: Reflect removal of choice of whether to cleanup in self-destruct
[8sync.git] / 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