MCPcopy Index your code
hub / github.com/clojure/clojure / dispatchAction

Method dispatchAction

src/jvm/clojure/lang/Agent.java:246–256  ·  view source on GitHub ↗
(Action action)

Source from the content-addressed store, hash-verified

244}
245
246static void dispatchAction(Action action){
247 LockingTransaction trans = LockingTransaction.getRunning();
248 if(trans != null)
249 trans.enqueue(action);
250 else if(nested.get() != null)
251 {
252 nested.set(nested.get().cons(action));
253 }
254 else
255 action.agent.enqueue(action);
256}
257
258void enqueue(Action action){
259 boolean queued = false;

Callers 2

dispatchMethod · 0.95
runMethod · 0.95

Calls 6

getRunningMethod · 0.95
enqueueMethod · 0.95
getMethod · 0.65
consMethod · 0.65
setMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected