* 8sync/agenda.scm (make-agenda): Set #:pre-unwind-handler to
print-error-and-continue. This makes it so that by default,
exceptions get printed to the shell in which the agenda was spawned.
(start-agenda): Set #:stop-condition to stop-on-nothing-to-do. This
is a bit heavier than maybe desirable but is a good "default" stop
condition, and prevents the agenda from entering into a busy-loop
when computation has finished.
(schedule (make-schedule))
(time (gettimeofday))
(catch-handler #f)
- (pre-unwind-handler #f))
+ (pre-unwind-handler print-error-and-continue))
;; TODO: document arguments
"Make a fresh agenda."
(make-agenda-intern queue prompt
#:key
;; @@: Should we make stop-on-nothing-to-do
;; the default stop-condition?
- stop-condition
+ (stop-condition stop-on-nothing-to-do)
(get-time gettimeofday)
(handle-ports update-agenda-from-select!))
;; TODO: Document fields