Algorithms for delaying some action by a particular amount of time.
Algorithms for delaying some action by a particular amount of time.
(defer f tm)Schedule f to run in tm ms.
Schedule f to run in `tm` ms.
(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).
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |