Liking cljdoc? Tell your friends :D

clojurewerkz.meltdown.reactor

Provides key reactor and message passing operations:

  • Reactor instantiation
  • Registration (subscription) for events
  • Event notifications
Provides key reactor and message passing operations:

* Reactor instantiation
* Registration (subscription) for events
* Event notifications
raw docstring

createclj

(create & {:keys [dispatcher-type event-routing-strategy env dispatcher]})

Creates a reactor instance.

A new router is instantiated for every reactor, otherwise reactors will needlessly share state

Creates a reactor instance.

A new router is instantiated for every reactor,
otherwise reactors will needlessly share state
sourceraw docstring

dispatcher-typesclj

source

maybe-wrap-eventclj

(maybe-wrap-event ev)

Coerces given into to an Event instance

Coerces given into to an Event instance
sourceraw docstring

notifyclj

(notify reactor payload)
(notify reactor key payload)
(notify reactor key payload completion-fn)

Broadcasts a event instantiated from provided payload (data structure)

Broadcasts a event instantiated from provided payload (data structure)
sourceraw docstring

notify-rawclj

(notify-raw reactor key payload)
source

onclj

(on reactor selector f)

Registers a Clojure function as event handler for a particular kind of events.

Registers a Clojure function as event handler for a particular kind of events.
sourceraw docstring

on-errorclj

(on-error reactor exception-type f)

Registers a Clojure function as event handler for a class of Exception.

Registers a Clojure function as event handler for a class of Exception.
sourceraw docstring

receive-eventclj

(receive-event reactor selector f)

Same as notify, except it checks for reply-to and sends a resulting callback. Used for optimization, since checking for reply-to is a (relatively) expensive operation

Same as notify, except it checks for reply-to and sends a resulting callback. Used for optimization, since checking for
reply-to is a (relatively) expensive operation
sourceraw docstring

register-consumerclj

(register-consumer reactor consumer)
(register-consumer reactor selector consumer)

Registers a Clojure function as event handler for a particular kind of events.

Registers a Clojure function as event handler for a particular kind of events.
sourceraw docstring

responds-to?clj

(responds-to? reactor key)

Returns true if provded reactor has consumers registered for a particular key

Returns true if provded reactor has consumers registered for a particular key
sourceraw docstring

send-eventclj

(send-event reactor key event callback)
source

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

× close