(clear-interval id)
Returns an action that will clear the interval with the given id.
Returns an action that will clear the interval with the given id.
(clear-timeout id)
Returns an action that will clear the timeout with the given id.
Returns an action that will clear the timeout with the given id.
(go-back)
Returns an action that will instruct the browser to go one step back in its history.
Returns an action that will instruct the browser to go one step back in its history.
(interval target make-id-message ms message)
Returns an action that will send message
to target
every ms
milliseconds. It will also send the message (make-id-message id)
to it with an id that can be used to clear the timeout
with clear-interval
.
Returns an action that will send `message` to `target` every `ms` milliseconds. It will also send the message `(make-id-message id)` to it with an id that can be used to clear the timeout with [[clear-interval]].
(interval* target make-id-message ms message-fn)
(interval* target make-id-message ms message-fn initial-state)
Returns an action that will call (message-fn state)
which must
yield a pair of a message and a new state, which is sent to
target
. Initially that will be repeated every ms
milliseconds. It will also send the message (make-id-message id)
to it with an id that can be used to clear the timeout
with clear-interval
.
Returns an action that will call `(message-fn state)` which must yield a pair of a message and a new state, which is sent to `target`. Initially that will be repeated every `ms` milliseconds. It will also send the message `(make-id-message id)` to it with an id that can be used to clear the timeout with [[clear-interval]].
(next-tick target message)
Returns an action that will send message
to target
immediately after the control goes back to the browser. Similar to
a timeout
with 0 milliseconds.
Returns an action that will send `message` to `target` immediately after the control goes back to the browser. Similar to a [[timeout]] with 0 milliseconds.
(reload)
(reload clear-cache?)
Returns an action that will instruct the browser to reload the page, optionally by clearing its caches before that.
Returns an action that will instruct the browser to reload the page, optionally by clearing its caches before that.
(request-animation-frame target make-id-message make-message)
Returns an action that will send (make-message timestamp)
to
target
on the next animation frame, and (make-id-message id)
with an id that can be used with cancel-animation-frame
immediately.
Returns an action that will send `(make-message timestamp)` to `target` on the next animation frame, and `(make-id-message id)` with an id that can be used with `cancel-animation-frame` immediately.
(request-animation-frames target make-id-message make-message)
Returns an action that will repeatedly send (make-message timestamp)
to
target
on every next animation frame, and (make-id-message id)
with an id that can be used with cancel-animation-frames
immediately.
Returns an action that will repeatedly send `(make-message timestamp)` to `target` on every next animation frame, and `(make-id-message id)` with an id that can be used with `cancel-animation-frames` immediately.
(restart-timeout target prev-id make-id-message ms message)
Returns an action that tries to clear the timeout with the given
prev-id
, if not nil
, and then starts a new timeout
with the given args.
Returns an action that tries to clear the timeout with the given `prev-id`, if not `nil`, and then starts a new [[timeout]] with the given args.
(timeout target make-id-message ms message)
Returns an action that will send message
to target
after ms
milliseconds. It will also send the message (make-id-message id)
to it with an id that can be used to clear the timeout
with clear-timeout
.
Returns an action that will send `message` to `target` after `ms` milliseconds. It will also send the message `(make-id-message id)` to it with an id that can be used to clear the timeout with [[clear-timeout]].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close