From 48174b48346c194142c4f1204cae60a5d1cc80c4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 9 Dec 2016 15:57:25 -0600 Subject: [PATCH] agenda: Rename 8sync-nowait to 8sync. * 8sync/agenda.scm (8sync-nowait, 8sync): Renamed 8sync-nowait to 8sync. * 8sync/systems/actors.scm (send-message, reply-message hive-reply-with-error): Switch calls of 8sync-nowait to 8sync. --- 8sync/agenda.scm | 4 ++-- 8sync/systems/actors.scm | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/8sync/agenda.scm b/8sync/agenda.scm index ae9ddd6..e5b5160 100644 --- a/8sync/agenda.scm +++ b/8sync/agenda.scm @@ -62,7 +62,7 @@ 8sync-delay 8sync-run 8sync-run-at 8sync-run-delay - 8sync-nowait + 8sync 8sleep ;; used for introspecting the error, but a method for making @@ -527,7 +527,7 @@ return the wrong thing via (8sync) and trip themselves up." ;; TODO: Write (%run-immediately) -(define-syntax-rule (8sync-nowait body) +(define-syntax-rule (8sync body) "Run body asynchronously but ignore its result... forge ahead in our current function!" (8sync-abort-to-prompt diff --git a/8sync/systems/actors.scm b/8sync/systems/actors.scm index 9ba3818..f9574d3 100644 --- a/8sync/systems/actors.scm +++ b/8sync/systems/actors.scm @@ -197,7 +197,7 @@ If key not found and DFLT not provided, throw an error." (message (make-message (hive-gen-message-id hive) to-id (actor-id from-actor) action (kwarg-list-to-alist message-body-args)))) - (8sync-nowait (hive-process-message hive message)))) + (8sync (hive-process-message hive message)))) (define (send-message-wait from-actor to-id action . message-body-args) "Send a message from an actor to another, but wait until we get a response" @@ -224,7 +224,7 @@ If key not found and DFLT not provided, throw an error." (actor-id from-actor) '*reply* (kwarg-list-to-alist message-body-args) #:in-reply-to (message-id original-message)))) - (8sync-nowait (hive-process-message hive new-message)))) + (8sync (hive-process-message hive new-message)))) (define (reply-message-wait from-actor original-message . message-body-args) @@ -513,7 +513,7 @@ more compact following syntax: (actor-id hive) '*error* new-message-body #:in-reply-to (message-id original-message)))) - (8sync-nowait (hive-process-message hive new-message)))) + (8sync (hive-process-message hive new-message)))) (define-method (hive-process-message (hive ) message) "Handle one message, or forward it via an ambassador" -- 2.31.1