MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Executors

Class Executors

classpath/java/util/concurrent/Executors.java:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11package java.util.concurrent;
12
13public class Executors {
14 public static <T> Callable<T> callable(final Runnable task, final T result) {
15 return new Callable<T>() {
16 @Override
17 public T call() throws Exception {
18 task.run();
19
20 return result;
21 }
22 };
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected