(assoc-events state bthread bid request-type)
(blocked state)
(bthreads-to-notify state event)
Given an event, return the bthreads to notify
Given an event, return the bthreads to notify
(is-blocked? blocked-events bid)
(make-bid-map)
(next-event state)
The winning bid will request a new event
The winning bid will request a new event
(next-state {:keys [state event]}
{new-bthread->bid :bthread->bid
new-waits :waits
new-requests :requests
new-blocks :blocks})
(notify-bthreads! state event)
Notify the bthreads, returning a map of the
bthread->bid
: only the new bids. The caller has
to merge this into the bthreads to bidsrequests
: the new requestswaits
: the new waitsblocks
: the new blocksNotify the bthreads, returning a map of the - `bthread->bid`: only the new bids. The caller has to merge this into the bthreads to bids - `requests`: the new requests - `waits`: the new waits - `blocks`: the new blocks
(step state event)
Return the next state based on the event
Return the next state based on the event
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close