Liking cljdoc? Tell your friends :D

tech.thomascothran.pavlov.bprogram.internal.state


assoc-eventsclj/s

(assoc-events state bthread bid request-type)

blockedclj/s

(blocked state)

bthreads-to-notifyclj/s

(bthreads-to-notify state event)

Given an event, return the bthreads to notify

Given an event, return the bthreads to notify
raw docstring

initclj/s

(init bthreads)

Initiate the state

Initiate the state
raw docstring

is-blocked?clj/s

(is-blocked? blocked-events bid)

make-bid-mapclj/s

(make-bid-map)

next-eventclj/s

(next-event state)

The winning bid will request a new event

The winning bid will request a new event
raw docstring

next-stateclj/s

(next-state {:keys [state event]}
            {new-bthread->bid :bthread->bid
             new-waits :waits
             new-requests :requests
             new-blocks :blocks})

notify-bthreads!clj/s

(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 bids
  • requests: the new requests
  • waits: the new waits
  • blocks: the new blocks
Notify 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
raw docstring

stepclj/s

(step state event)

Return the next state based on the event

Return the next state based on the event
raw docstring

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

× close