actors: Update self-destruct to run *clean-up* message handler.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2017 18:17:15 +0000 (12:17 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2017 18:17:15 +0000 (12:17 -0600)
commit17830fd9912894b6a30a5c4a4a83722a74c01ccd
tree8573c6142e69fb84d83d79b3c93d7050bebc5a56
parentbac7d5aece0b6687f7f55a235ae7c2969ea6d184
actors: Update self-destruct to run *clean-up* message handler.

* 8sync/actors.scm (self-destruct): Wait on *clean-up* action before
self-destructing by default.
(run-hive): Add parameter to specify whether or not to clean-up after
the hive finishes its tasks.
* tests/test-actors.scm: Add tests for disabling #:clean-up on run-tasks
and ensuring that *clean-up* runs on self-destruct.
8sync/actors.scm
tests/test-actors.scm