README 516 B

12345678910111213141516
  1. Clon is a Common Lisp library for scheduling much like cron.
  2. It's under the MIT licence. See COPYING.
  3. How to use it:
  4. ;;; create a stateless schedule:
  5. (make-typed-cron-schedule :second '(member 0 10 20 30 40 50))
  6. ;;; create a scheduler that remembers the last scheduled time:
  7. (make-scheduler *)
  8. ;;; schedule a function:
  9. (schedule-function (lambda ()
  10. (print (get-universal-time)))
  11. *)
  12. ;;; unschedule the timer returned by SCHEDULE-FUNCTION:
  13. (trivial-timers:unschedule-timer *)