(clock meta)
creates an instance of a clock (clock (:clock scheduler/defaults)) ;;=> #clock {:start-time nil, ;; :current-time nil, ;; :running false}
creates an instance of a clock (clock (:clock scheduler/*defaults*)) ;;=> #clock {:start-time nil, ;; :current-time nil, ;; :running false}
(clock-loop clock recur?)
updates the clock tick, if recur?
is true, then it keeps running
(-> (:clock scheduler/defaults)
(clock)
(clock-loop false))
;;=> #clock {:start-time nil,
;; :current-time #inst "2015-07-16T15:24:42.608-00:00",
;; :running false}
updates the clock tick, if `recur?` is true, then it keeps running (-> (:clock scheduler/*defaults*) (clock) (clock-loop false)) ;;=> #clock {:start-time nil, ;; :current-time #inst "2015-07-16T15:24:42.608-00:00", ;; :running false}
(clock-started? clock)
checks if the clock has started
checks if the clock has started
(clock-stopped? clock)
checks if the clock has stopped
checks if the clock has stopped
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close