Liking cljdoc? Tell your friends :D

monkey.ci.events.core


EventPostercljprotocol

post-eventsclj

(post-events poster evt)

Posts one or more events

Posts one or more events
source

EventReceivercljprotocol

add-listenerclj

(add-listener recv l)

Add the given listener to the receiver

Add the given listener to the receiver

remove-listenerclj

(remove-listener recv l)

Removes the listener from the receiver

Removes the listener from the receiver
source

filter-typeclj

(filter-type t f)
source

make-eventclj

(make-event e)
source

make-eventscljmultimethod

source

make-sync-eventsclj

(make-sync-events)
source

no-dispatchclj

(no-dispatch f)

Wraps f so that it always returns nil, to avoid events being re-dispatched.

Wraps `f` so that it always returns `nil`, to avoid events being re-dispatched.
sourceraw docstring

post-oneclj

(post-one listeners evt)
source

wrappedclj

(wrapped f before after & [error])

Returns a new function that wraps f and posts an event before and after. The before fn just receives the same arguments as f. The after fn one more, the return value of f. The first argument is assumed to be the runtime, which is used to get the event poster. The return values of before and after are posted as events. Returns the return value of calling f.

Any of the event generating functions can be nil, in which case it will be ignored.

Returns a new function that wraps `f` and posts an event before 
and after.  The `before` fn just receives the same arguments as 
`f`.  The `after` fn one more, the return value of `f`.  The first 
argument is assumed to be the runtime, which is used to get the 
event poster.  The return values of `before` and `after` are posted 
as events. Returns the return value of calling `f`.

Any of the event generating functions can be `nil`, in which case
it will be ignored.
sourceraw docstring

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

× close