Liking cljdoc? Tell your friends :D

monkey.ci.events.core


add-listenerclj

source

exception-resultclj

(exception-result ex)
source

filter-typecljdeprecated

(filter-type t f)
source

invoke-listenersclj

(invoke-listeners filter-fn listeners events)
source

make-eventclj

(make-event type & props)

Creates a new event with required properties. Additional properties are given as map keyvals, or as a single map.

Creates a new event with required properties.  Additional properties are given as
map keyvals, or as a single map.
sourceraw docstring

make-eventscljmultimethod

source

make-resultclj

(make-result status exit-code msg)
source

make-sync-eventsclj

(make-sync-events filter-fn)
source

matches-event?clj

(matches-event? evt {:keys [types sid] :as ef})

Matches events against event filters. This checks event types and possible sid.

Matches events against event filters.  This checks event types and possible sid.
sourceraw docstring

no-dispatchcljdeprecated

(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-eventsclj

(post-events e evts)
source

remove-listenerclj

source

resultclj

source

result-exitclj

source

set-resultclj

(set-result evt r)
source

wait-for-eventclj

(wait-for-event events ef & [pred])

Utility fn that registers using an event filter and invokes the handler when one has been received. Returns a deferred that realizes with the received event. An additional predicate can do extra filtering if it's not supported by the event filter.

Utility fn that registers using an event filter and invokes the handler when one has
been received.  Returns a deferred that realizes with the received event.  An additional
predicate can do extra filtering if it's not supported by the event filter.
sourceraw docstring

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