X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=8sync%2Fagenda.scm;h=da578a77f25a0ad839ba80f379ded4bac102d697;hp=223900814e68f9be3c32e4ae405d71d489a9c8ea;hb=9adac66bf1a1cf8e363aef54ddc7c14120c8f0c6;hpb=4874b23457ce2ff05e1381d6b8eca9f97b52285f diff --git a/8sync/agenda.scm b/8sync/agenda.scm index 2239008..da578a7 100644 --- a/8sync/agenda.scm +++ b/8sync/agenda.scm @@ -78,8 +78,6 @@ %current-agenda start-agenda agenda-run-once)) -(install-suspendable-ports!) - ;; @@: Using immutable agendas here, so wouldn't it make sense to ;; replace this queue stuff with using pfds based immutable queues? @@ -477,7 +475,7 @@ forge ahead in our current function!" (8sync-abort-to-prompt (make-async-request (lambda (kont) - (make-run-request (lambda () (kont #f)) time))))) + (make-run-request (lambda () (kont #f)) (tdelta time)))))) ;; Voluntarily yield execution (define (yield) ; @@: should this be define-inlinable? @@ -617,6 +615,7 @@ on suspendable ports." (post-run-hook #f)) ;; TODO: Document fields "Start up the AGENDA" + (install-suspendable-ports!) (let loop ((agenda agenda)) (let ((agenda ;; @@: Hm, maybe here would be a great place to handle