Liking cljdoc? Tell your friends :D

cljs-flux.dispatcher


dispatchercljs

(dispatcher)

Create and return Flux dispatcher instance

Create and return Flux dispatcher instance
raw docstring

Dispatchercljs


IDispatchercljsprotocol

-invoke-callbackcljs

(-invoke-callback this id)

Invoke the registered callback.

Invoke the registered callback.

dispatchcljs

(dispatch this payload)

Dispatches a payload to all registered callbacks

Dispatches a payload to all registered callbacks

registercljs

(register this callback)

Registers a callback to be invoked with every dispatched payload. Returns a token that can be used with wait-for.

Registers a callback to be invoked with every dispatched payload. Returns
a token that can be used with `wait-for`.

unregistercljs

(unregister this id)

Removes a callback based on its token.

Removes a callback based on its token.

wait-forcljs

(wait-for this ids)

Waits for the callbacks specified to be invoked before continuing execution.

Waits for the callbacks specified to be invoked before continuing execution.

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

× close