* 8sync/agenda.scm (run-agenda): Renamed from start-agenda.
* 8sync/actors.scm:
* tests/test-agenda.scm: Update all callers.
(let* ((queue (list->q initial-tasks))
(agenda (make-agenda #:pre-unwind-handler print-error-and-continue
#:queue queue)))
- (start-agenda agenda)))
+ (run-agenda agenda)))
;; Run cleanup
(lambda ()
(when cleanup
(define (run-hive-cleanup hive)
(let ((queue (list->q (list (bootstrap-message hive (actor-id hive)
'*cleanup-all*)))))
- (start-agenda
+ (run-agenda
(make-agenda #:queue queue))))
(define (bootstrap-message hive to-id action . message-body-args)
stop-on-nothing-to-do
%current-agenda-prompt
- start-agenda agenda-run-once!))
+ run-agenda agenda-run-once!))
\f
;;; Agenda definition
(= 0 (hash-count (const #t) (agenda-write-port-map agenda)))))
-(define* (start-agenda agenda
- #:key (stop-condition stop-on-nothing-to-do)
- ;; For live hacking madness, etc
- (post-run-hook #f))
+(define* (run-agenda agenda
+ #:key (stop-condition stop-on-nothing-to-do)
+ ;; For live hacking madness, etc
+ (post-run-hook #f))
;; TODO: Document fields
"Start up the AGENDA"
(install-suspendable-ports!)
(run-it dummy-func))
(with-fresh-speaker
- (start-agenda (make-agenda #:queue (make-q* run-dummy))
- #:stop-condition (true-after-n-times 2))
+ (run-agenda (make-agenda #:queue (make-q* run-dummy))
+ #:stop-condition (true-after-n-times 2))
(test-equal (get-spoken)
'("I bet I can make you say you're a dummy!\n"
"I'm a dummy\n")))
;; should only do the first one after one round though
(with-fresh-speaker
- (start-agenda (make-agenda #:queue (make-q* run-dummy))
- #:stop-condition (true-after-n-times 1))
+ (run-agenda (make-agenda #:queue (make-q* run-dummy))
+ #:stop-condition (true-after-n-times 1))
(test-equal (get-spoken)
'("I bet I can make you say you're a dummy!\n")))