actors: Move error propagation within <-wait; add <-wait*, <-reply-wait*.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 21 Dec 2016 23:00:43 +0000 (17:00 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 21 Dec 2016 23:15:13 +0000 (17:15 -0600)
commit5fa0225a261a031fc8cd2988932e6a3e8f4528fb
treeb0e6d962ace32ab9d970b07403c0d0e0bc965c12
parentf768ab48d6a073412021e8ce56508cdeef45a444
actors: Move error propagation within <-wait; add <-wait*, <-reply-wait*.

* 8sync/actors.scm (send-message): Rename xtra-params argument to
send-options and use it in aborting to the hive prompt.
(<-wait*, <-reply-wait*): New procedures.  These allow for adding
a send-options list as a first argument, including #:accept-errors.
These also wrap call wait-maybe-handle-errors.
(<-wait, <-reply-wait): Updated as thin wrappers around <-wait* and
<-reply-wait*.
(wait-maybe-handle-errors): New procedure.
(<waiting-on-reply>): New record type.
(hive-process-message): Update to accept send-options and make use
of <waiting-on-reply>.  Removes error handling, which now hapens in
wait-maybe-handle-errors.
8sync/actors.scm