Liking cljdoc? Tell your friends :D

prpr.a-frame


->interceptorclj/s

(->interceptor {_id :id _before :before _after :after})

TODO impl

TODO impl
sourceraw docstring

add-init-coeffectsclj/s

(add-init-coeffects event init-coeffects)

add some initial coeffects to an event

add some initial coeffects to an event
sourceraw docstring

assoc-coeffectclj/s

(assoc-coeffect _context _key _value)

TODO impl

TODO impl
sourceraw docstring

assoc-effectclj/s

(assoc-effect _context _key _value)

TODO impl

TODO impl
sourceraw docstring

clear-cofxclj/s

(clear-cofx)
(clear-cofx id)
source

clear-eventclj/s

(clear-event)
(clear-event id)
source

clear-fxclj/s

(clear-fx)
(clear-fx id)
source

clear-global-interceptorsclj/s

(clear-global-interceptors router)
(clear-global-interceptors router id)

clear all or one global interceptors

clear all or one global interceptors
sourceraw docstring

create-routerclj/s

(create-router app)
(create-router app opts)

create an a-frame router

create an a-frame router
sourceraw docstring

create-router-dispose-fnclj/s

(create-router-dispose-fn app)
(create-router-dispose-fn app opts)

factory function for an a-frame router and a fn to dispose the router

returns [router dispose-fn]

factory function for an a-frame router and
 a fn to dispose the router

returns [router dispose-fn]
sourceraw docstring

dispatchclj/s

(dispatch router event)
(dispatch router init-coeffects event)

dispatch a single event

dispatch a single event
sourceraw docstring

dispatch-nclj/s

(dispatch-n router events)
(dispatch-n router init-coeffects events)

dispatch a vector of events

dispatch a vector of events
sourceraw docstring

dispatch-n-syncclj/s

(dispatch-n-sync router events)
(dispatch-n-sync router init-coeffects events)

dispatch-sync a vector of events

dispatch-sync a vector of events
sourceraw docstring

dispatch-syncclj/s

(dispatch-sync router event)
(dispatch-sync router init-coeffects event)

dispatch a single event and await the completion of its processing (all cofx, event and fx will complete before the result promise returns)

dispatch a single event and await the completion of its
processing (all cofx, event and fx will complete before
the result promise returns)
sourceraw docstring

enqueueclj/s

(enqueue _context _interceptors)

TODO impl

TODO impl
sourceraw docstring

get-coeffectclj/s

(get-coeffect _context)
(get-coeffect _context _key)
(get-coeffect _context _key _not-found)

TODO impl

TODO impl
sourceraw docstring

get-effectclj/s

(get-effect _context)
(get-effect _context _key)
(get-effect _context _key _not-found)

TODO impl

TODO impl
sourceraw docstring

inject-cofxclj/s

(inject-cofx id)
(inject-cofx id value)
source

reg-cofxclj/s

(reg-cofx id handler)

register a cofx handler (<handler> app) -> Promise<> (<handler> app arg) -> Promise<>

register a cofx handler
(<handler> app) -> Promise<*>
(<handler> app arg) -> Promise<*>
sourceraw docstring

reg-event-ctxclj/s

(reg-event-ctx id handler)
(reg-event-ctx id interceptors handler)

register an event-handler expected to return a (promise of an) updated event-context

(<handler> context) -> Promise<context>

fx from the returned context will be processed as described in reg-event-fx

register an event-handler expected to return a (promise of an) updated
event-context

(<handler> context) -> Promise<context>

fx from the returned context will be processed as described in reg-event-fx
sourceraw docstring

reg-event-fxclj/s

(reg-event-fx id handler)
(reg-event-fx id interceptors handler)

register an event-handler expected to return a (promise of a) seq of fx

(<handler> cofx event) -> Promise<[{<fx-id> <fx-args>}]>

the seq of fx will be processed sequentially - maps with multiple fx entries may be processed concurrently

note that processing of the partition's queue will be suspended until the handler returns

register an event-handler expected to return a (promise of a) seq of fx

(<handler> cofx event) -> Promise<[{<fx-id> <fx-args>}]>

the seq of fx will be processed sequentially - maps with multiple fx
entries may be processed concurrently

note that processing of the partition's queue will be suspended until the
handler returns
sourceraw docstring

reg-fxclj/s

(reg-fx id handler)

register an fx handler (<handler> app arg) -> Promise<*>

register an fx handler
(<handler> app arg) -> Promise<*>
sourceraw docstring

reg-global-interceptorclj/s

(reg-global-interceptor router interceptor)

register a global interceptor for the router instance - all events dispatched to this router will have global interceptors prepended to the interceptor chain declared with the handler

register a global interceptor for the router instance - all events
dispatched to this router will have global interceptors prepended to
the interceptor chain declared with the handler
sourceraw docstring

repl-dispatch-sync->coeffectsclj/s

(repl-dispatch-sync->coeffects router event)
(repl-dispatch-sync->coeffects n router event)

return the coeffects for an event

processes all the :enter interceptor fns of the event's chain, but skips the event-handler and any :leave or :error fns

n - the number of handlers to drop from he end of the interceptor chain. default 1

return the coeffects for an event

processes all the :enter interceptor fns of the event's chain,
but skips the event-handler and any :leave or :error fns

n - the number of handlers to drop from he end of
    the interceptor chain. default 1
sourceraw docstring

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

× close