The event maps keep the events coming in from the outside world and going out to it. We made the choice of raising errors if some events in are left unconsumed.
The event maps keep the events coming in from the outside world and going out to it. We made the choice of raising errors if some events in are left unconsumed.
(add-event-in events event-name event-arg)
Adds an inbound event
Adds an inbound event
(add-event-out events event-name event-arg)
Adds an event that will later be consumed by the library user
Adds an event that will later be consumed by the library user
(clear-events-in events)
Clears the inbound event queue of any event.
Clears the inbound event queue of any event.
(clear-events-out events)
Clears all the outbound events
Clears all the outbound events
(get-events-in events)
Returns all the inbound events
Returns all the inbound events
(get-events-out events)
Returns all the events from tree to user
Returns all the events from tree to user
(pop-event-in events event-name)
(pop-event-in events event-name pick-event?)
Returns a pair with first the matching event and next the updated events map. The pick-event? function allows for additional filtering. It will be passed the current event being considered, and should return true when that event should be picked, false otherwise.
Returns a pair with first the matching event and next the updated events map. The pick-event? function allows for additional filtering. It will be passed the current event being considered, and should return true when that event should be picked, false otherwise.
(update-events-in events func)
Updates the inbound events witht eh provided function
Updates the inbound events witht eh provided function
(update-events-out events func)
Updates the events for user consumptions with the provided function
Updates the events for user consumptions with the provided function
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close