actors: Add %current-actor parameter.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 15 Dec 2016 16:18:34 +0000 (10:18 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 15 Dec 2016 16:18:34 +0000 (10:18 -0600)
commit940cf28396a401ff67ca81fb7fe2580b1784a733
tree1b1404ed3bc277271d4e780763f3d16f04c8d8c6
parent19ecc5f415fac9713aa2b037926ab80e95f75197
actors: Add %current-actor parameter.

This allows actors which may call out long procedures, such as a web
worker, to still be able to have access their actor so they can send
messages to other actors.

* 8sync/systems/actors.scm (%current-actor): New variable.
  (hive-process-message): Update to parameterize %current-actor.
8sync/systems/actors.scm