MCPcopy Create free account
hub / github.com/traneio/future / get

Method get

future-java/src/test/java/io/trane/future/PromiseTest.java:24–26  ·  view source on GitHub ↗
(Future<T> future)

Source from the content-addressed store, hash-verified

22public class PromiseTest {
23
24 private <T> T get(Future<T> future) throws CheckedFutureException {
25 return future.get(Duration.ZERO);
26 }
27
28 private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
29 private final Exception ex = new TestException();

Callers 15

applyMethod · 0.95
becomeIfEmptyLinkedMethod · 0.95
becomeIfEmptyWaitingMethod · 0.95
setValueSuccessMethod · 0.95
setExceptionSuccessMethod · 0.95
becomeSuccessMethod · 0.95
becomeAPromiseMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected