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

Method releasePendingSends

src/jvm/clojure/lang/Agent.java:275–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275static public int releasePendingSends(){
276 IPersistentVector sends = nested.get();
277 if(sends == null)
278 return 0;
279 for(int i=0;i<sends.count();i++)
280 {
281 Action a = (Action) sends.valAt(i);
282 a.agent.enqueue(a);
283 }
284 nested.set(PersistentVector.EMPTY);
285 return sends.count();
286}
287}

Callers 1

doRunMethod · 0.80

Calls 5

getMethod · 0.65
countMethod · 0.65
valAtMethod · 0.65
enqueueMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected