Liking cljdoc? Tell your friends :D

com.fulcrologic.fulcro.algorithms.scheduling

Algorithms for delaying some action by a particular amount of time.

Algorithms for delaying some action by a particular amount of time.
raw docstring

deferclj/s

(defer f tm)

Schedule f to run in tm ms.

Schedule f to run in `tm` ms.
source (clj)source (cljs)raw docstring

schedule!clj/s

(schedule! app scheduled-key action)
(schedule! app scheduled-key action tm)

Schedule the processing of a specific action in the runtime atom. This is a no-op if the item is already scheduled. When the timeout arrives it runs the given action and sets the given flag back to false.

  • scheduled-key - The runtime flag that tracks scheduling for the processing.
  • action - The function to run when the scheduled time comes.
  • tm - Number of ms to delay (default 0).
Schedule the processing of a specific action in the runtime atom. This is a no-op if the item is already scheduled.
When the timeout arrives it runs the given action and sets the given flag back to false.

- `scheduled-key` - The runtime flag that tracks scheduling for the processing.
- `action` - The function to run when the scheduled time comes.
- `tm` - Number of ms to delay (default 0).
sourceraw docstring

schedule-animation!clj/s

(schedule-animation! app scheduled-key action)

Schedule the processing of a specific action in the runtime atom on the next animation frame.

  • scheduled-key - The runtime flag that tracks scheduling for the processing.
  • action - The function to run when the scheduled time comes.
Schedule the processing of a specific action in the runtime atom on the next animation frame.

- `scheduled-key` - The runtime flag that tracks scheduling for the processing.
- `action` - The function to run when the scheduled time comes.
sourceraw docstring

scheduling-timeout-loopclj

source

timeout-queueclj

source

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

× close