Liking cljdoc? Tell your friends :D

rigui.core


cancel!clj/s

(cancel! tw t)

Cancel a task.

Cancel a task.
sourceraw docstring

every!clj/s

(every! tw value delay interval)

Schedule some value to be executed at a fixed interval.

Schedule some value to be executed at a fixed interval.
sourceraw docstring

later!clj/s

(later! tw value delay)

Schedule some value to be executed later, returns a promise-like object holds the result.

Schedule some value to be executed later, returns a promise-like object holds the result. 
sourceraw docstring

startclj/s≠

clj
(start tick bucket-count)
(start tick bucket-count consumer-fn)
(start tick bucket-count consumer-fn executor)
cljs
(start tick bucket-count)
(start tick bucket-count consumer-fn)

Start a timer and return it.

  • tick: the tick size of timing wheel
  • bucket-count: buckets per wheel
  • consumer-fn: the function will be called when the value emitted, and result will be delivered to task promise. Default function is identity
  • executor: the executor that consumer-fn runs on (only available to JVM hosted clojure). By default consumer function will run on timer thread.
Start a timer and return it.
* tick: the tick size of timing wheel
* bucket-count: buckets per wheel
* consumer-fn: the function will be called when the value emitted, and result will be delivered to task promise. Default function is `identity`
* executor: the executor that consumer-fn runs on (only available to JVM hosted clojure). By default consumer function will run on timer thread.
sourceraw docstring

stopclj/s

(stop tw)

Stop the timer.

Stop the timer.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close