X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=8sync%2Fagenda.scm;h=aded0d56f2230a84c31c11d8b23bec5c4f440377;hp=c2614ef471cef514b14f3a7878a1523ea453c603;hb=ed0ef531945b62463f3dcd529930b73b06fc7ba4;hpb=9bb036f18457a6c2d24343e21e6950f9df5043e7 diff --git a/8sync/agenda.scm b/8sync/agenda.scm index c2614ef..aded0d5 100644 --- a/8sync/agenda.scm +++ b/8sync/agenda.scm @@ -66,7 +66,8 @@ run-it wrap wrap-apply run run-at run-delay - %port-request %run %run-at %run-delay + %run %run-at %run-delay %port-request + %8sync-run %8sync-run-at %8sync-run-delay %8sync-port catch-8sync catch-%8sync @@ -552,6 +553,26 @@ return the wrong thing via (%8sync) and trip themselves up." (list (make-port-request port-request-args ...) (make-run-request kont))))) +;; Sugar +(define-syntax-rule (%8sync-run rest ...) + "Sugar for (%8sync (%run ...))" + (%8sync (%run rest ...))) + +(define-syntax-rule (%8sync-run-at rest ...) + "Sugar for (%8sync (%run-at ...))" + (%8sync (%run-at rest ...))) + +(define-syntax-rule (%8sync-run-delay rest ...) + "Sugar for (%8sync (%run-delay ...))" + (%8sync (%run-delay rest ...))) + +(define-syntax-rule (%8sync-port rest ...) + "Sugar for (%8sync (%port-request ...))" + (%8sync (%port-request rest ...))) + + +;; TODO: Write (%run-immediately) + ;; TODO (define-syntax-rule (%run-with-return return body ...) (make-async-request