MCPcopy Index your code
hub / github.com/apache/groovy / execute

Method execute

src/main/java/groovy/concurrent/Agent.java:341–346  ·  view source on GitHub ↗

Queues a task for serial execution. @param command the task to execute

(Runnable command)

Source from the content-addressed store, hash-verified

339 * @param command the task to execute
340 */
341 @Override
342 public void execute(Runnable command) {
343 if (shutdown) throw new RejectedExecutionException("shutdown");
344 queue.add(command);
345 scheduleNext();
346 }
347
348 private void scheduleNext() {
349 if (!queue.isEmpty() && active.compareAndSet(false, true)) {

Callers 7

submitMethod · 0.95
getAsyncMethod · 0.45
sendMethod · 0.45
sendAndGetMethod · 0.45
shutdownMethod · 0.45
scheduleNextMethod · 0.45
startMethod · 0.45

Calls 2

scheduleNextMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected