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

Method dispatch

src/jvm/clojure/lang/Agent.java:234–244  ·  view source on GitHub ↗
(IFn fn, ISeq args, Executor exec)

Source from the content-addressed store, hash-verified

232}
233
234public Object dispatch(IFn fn, ISeq args, Executor exec) {
235 Throwable error = getError();
236 if(error != null)
237 {
238 throw Util.runtimeException("Agent is failed, needs restart", error);
239 }
240 Action action = new Action(this, fn, args, exec);
241 dispatchAction(action);
242
243 return this;
244}
245
246static void dispatchAction(Action action){
247 LockingTransaction trans = LockingTransaction.getRunning();

Callers

nothing calls this directly

Calls 3

getErrorMethod · 0.95
runtimeExceptionMethod · 0.95
dispatchActionMethod · 0.95

Tested by

no test coverage detected