X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=8sync%2Fagenda.scm;h=c417a40e28fdad25cf811d796a92381d4efa71e8;hp=195b23a300354bd183ffe4d2e8b3251b908c27d9;hb=6e23866dbd9991dea49c8e97fb13cc47f3a148d3;hpb=c1c7225a35511bbfd2362ca0d5359fb2f1fbb8f6 diff --git a/8sync/agenda.scm b/8sync/agenda.scm index 195b23a..c417a40 100644 --- a/8sync/agenda.scm +++ b/8sync/agenda.scm @@ -1,5 +1,5 @@ ;;; 8sync --- Asynchronous programming for Guile -;;; Copyright (C) 2015 Christopher Allan Webber +;;; Copyright (C) 2015, 2016 Christopher Allan Webber ;;; ;;; This file is part of 8sync. ;;; @@ -71,6 +71,7 @@ 8sync 8sync-delay 8sync-run 8sync-run-at 8sync-run-delay 8sync-port 8sync-port-remove + 8sync-nowait catch-8sync @@ -593,7 +594,7 @@ Possibly specify WHEN as the second argument." ;; TODO: Write (%run-immediately) -(define-syntax-rule (8sync-immediate body) +(define-syntax-rule (8sync-nowait body) "Run body asynchronously but ignore its result... forge ahead in our current function!" (8sync-abort-to-prompt @@ -602,7 +603,7 @@ forge ahead in our current function!" (list (make-run-request ;; See comment in 8sync-port (wrap (kont #f)) #f) - (make-run-request body #f)))))) + (make-run-request (lambda () body) #f)))))) (define-syntax-rule (catch-8sync exp (handler-key handler) ...) (catch '8sync-caught-error