Liking cljdoc? Tell your friends :D

fulcro-spec.async


AsyncQueuecljs

source

Eventcljs

source

IAsyncQueueclj/s≠protocol

schedule-eventclj/s

(schedule-event this ms-from-now fn-to-call)

Schedule an event which should occur at some time in the future (offset from now).

Schedule an event which should occur at some time in the future (offset from now).

peek-eventclj/s

(peek-event this)

Returns the first event on the queue

Returns the first event on the queue

current-timeclj/s

(current-time this)

Returns the current time on the simulated clock, in ms

Returns the current time on the simulated clock, in ms

advance-clockclj/s

(advance-clock this ms)

Move the clock forward by the specified number of ms, triggering events (even those added by interstitial triggers) in the correct order up to (and including) events that coincide with the final time.

Move the clock forward by the specified number of ms, triggering events (even those added by interstitial triggers) in the correct order up to (and including) events that coincide with the final time.
source

make-async-queueclj/s

(make-async-queue)

Build an asynchronous event simulation queue.

Build an asynchronous event simulation queue.
sourceraw docstring

process-first-event!clj/s

(process-first-event! queue)

Triggers the first event in the queue (runs it), and removes it from the queue.

Triggers the first event in the queue (runs it), and removes it from the queue.
sourceraw docstring

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

× close