X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=8sync%2Fagenda.scm;h=da398458db34096d2893d61286456ee9ad156ab1;hp=eba0139fa2268f526430ae73f00285ab0e215e4b;hb=d059d67fdc1e547f6d55b2883e5b0cc2f14f0380;hpb=0a4fe47d9b6fe7c13296562b5408f68d0083da71 diff --git a/8sync/agenda.scm b/8sync/agenda.scm index eba0139..da39845 100644 --- a/8sync/agenda.scm +++ b/8sync/agenda.scm @@ -70,8 +70,9 @@ run-it wrap wrap-apply run run-at run-delay - %run %run-at %run-delay %port-request - %8sync-run %8sync-run-at %8sync-run-delay %8sync-port + %run %run-at %run-delay %port-request %port-remove-request + %8sync-run %8sync-run-at %8sync-run-delay + %8sync-port %8sync-port-remove catch-8sync catch-%8sync @@ -564,13 +565,13 @@ return the wrong thing via (%8sync) and trip themselves up." (make-async-request (lambda (kont) (list (make-port-request port port-request-args ...) - (make-run-request kont))))) + (make-run-request kont #f))))) (define-syntax-rule (%port-remove-request port) (make-async-request (lambda (kont) (list (make-port-remove-request port) - (make-run-request kont))))) + (make-run-request kont #f))))) ;; Sugar @@ -590,6 +591,10 @@ return the wrong thing via (%8sync) and trip themselves up." "Sugar for (%8sync (%port-request ...))" (%8sync (%port-request rest ...))) +(define-syntax-rule (%8sync-port-remove rest ...) + "Sugar for (%8sync (%port-remove-request ...))" + (%8sync (%port-remove-request rest ...))) + ;; TODO: Write (%run-immediately)