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

Method submit

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

Submits a callable for serial execution. @param task the task to submit @param the result type @return a future for the submitted task

(Callable<T> task)

Source from the content-addressed store, hash-verified

415 * @return a future for the submitted task
416 */
417 @Override
418 public <T> Future<T> submit(Callable<T> task) {
419 FutureTask<T> ft = new FutureTask<>(task);
420 execute(ft);
421 return ft;
422 }
423
424 /**
425 * Submits a runnable for serial execution with a preset result.

Callers 2

updateTargetValueMethod · 0.45

Calls 1

executeMethod · 0.95

Tested by 1