Liking cljdoc? Tell your friends :D

reactors.core


all-subscribers-removedclj

(all-subscribers-removed k r o n)
source

attach-channel-cleanupclj

(attach-channel-cleanup chan f)
source

changed?clj

(changed? key old-state new-state)
(changed? key old-state new-state default)
source

crashedclj

(crashed agent error)
source

create-reactorclj

(create-reactor)
(create-reactor {:keys [backoff emitter reducer initializer] :as opts})
source

current-reactorclj

(current-reactor)
source

get-addedclj

(get-added key o n)
source

get-removedclj

(get-removed key o n)
source

implode!clj

(implode! {:keys [subscribers publishers destructors]})
source

publishers-on-changeclj

(publishers-on-change k r o {:keys [reducer] :as n})
source

publishers-on-startclj

(publishers-on-start k r o {:keys [reducer publishers] :as n})
source

quietlycljmacro

(quietly & body)
source

Reactorcljprotocol

remove-subscribers!clj

(remove-subscribers! this publishers)

Removes subscribers by their idents. A removed subscriber is closed.

Removes subscribers by their idents. A removed subscriber is closed.

get-agentclj

(get-agent this)

Returns the agent that is used to implement the reactor.

Returns the agent that is used to implement the reactor.

remove-destructors!clj

(remove-destructors! this destructors)

Removes destructors by their idents.

Removes destructors by their idents.

await!clj

(await! this)

Blocks the thread until the message queue for the reactor is empty.

Blocks the thread until the message queue for the reactor is empty.

start!clj

(start! this)

Starts the reactor. This emits the initial state to any subscribers.

Starts the reactor. This emits the initial state to any subscribers.

set-initializer!clj

(set-initializer! this initializer)

Sets the function for populating the initial state of the reactor, also used to repopulate after a crash.

Sets the function for populating the initial state of the reactor, also used to repopulate after a crash.

add-subscribers!clj

(add-subscribers! this subscribers)

Adds subscribers (a map of idents to core.async channels listening for changes).

Adds subscribers (a map of idents to core.async channels listening for changes).

add-destructors!clj

(add-destructors! this destructors)

Adds destructors (a map of idents to functions to call when the reactor is destroyed).

Adds destructors (a map of idents to functions to call when the reactor is destroyed).

get-publishersclj

(get-publishers this)

Returns the idents of the publishers feeding to the reactor.

Returns the idents of the publishers feeding to the reactor.

get-stateclj

(get-state this)

Returns the current state of the reactor.

Returns the current state of the reactor.

set-emitter!clj

(set-emitter! this emitter)

Sets the function for emitting events based on changes in the reactor state.

Sets the function for emitting events based on changes in the reactor state.

add-publishers!clj

(add-publishers! this publishers)

Adds publishers (a map of idents to core.async channels delivering changes).

Adds publishers (a map of idents to core.async channels delivering changes).

remove-publishers!clj

(remove-publishers! this publishers)

Removes publishers by their idents. A removed publisher is closed.

Removes publishers by their idents. A removed publisher is closed.

update-blocking!clj

(update-blocking! this f)

Change the state independently of a publisher with a function that may block.

Change the state independently of a publisher with a function that may block.

set-reducer!clj

(set-reducer! this reducer)

Sets the function for performing reductions of change into the reactor state.

Sets the function for performing reductions of change into the reactor state.

get-subscribersclj

(get-subscribers this)

Returns the idents of the subscribers watching the reactor.

Returns the idents of the subscribers watching the reactor.

update!clj

(update! this f)

Change the state independently of a publisher.

Change the state independently of a publisher.

set-backoff!clj

(set-backoff! this backoff)

Backoff policy represented by a sequence (potentially infinite) of milliseconds to wait between reboots. Once empty, the reactor will implode.

Backoff policy represented by a sequence (potentially infinite) of milliseconds to wait between reboots. Once empty, the reactor will implode.

reboot!clj

(reboot! this)

Crashes the reactor so that it reboots itself. Counts against the backoff policy.

Crashes the reactor so that it reboots itself. Counts against the backoff policy.
source

reboot-agent!clj

(reboot-agent! agent)
source

recursive-awaitclj

(recursive-await a)

Like await, except it waits on actions dispatched by actions.

Like await, except it waits on actions dispatched by actions.
sourceraw docstring

running?clj

(running? o n)
source

send-messagesclj

(send-messages messages subscribers)
source

started?clj

(started? o n)
source

state-changedclj

(state-changed k r o {:keys [emitter subscribers] :as n})
source

subscribers-on-changeclj

(subscribers-on-change k r o {:keys [emitter] :as n})
source

subscribers-on-startclj

(subscribers-on-start k r o {:keys [emitter subscribers] :as n})
source

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

× close