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

Method run

future-java/src/test/java/io/trane/future/PromiseTest.java:714–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712 AtomicReference<Throwable> cause = new AtomicReference<>();
713 Thread t = new Thread() {
714 @Override
715 public void run() {
716 try {
717 (Promise.<Integer>apply()).get(Duration.ofMinutes(1));
718 } catch (CheckedFutureException e) {
719 cause.set(e.getCause());
720 }
721 }
722 };
723 t.start();
724 t.interrupt();

Callers

nothing calls this directly

Calls 3

applyMethod · 0.95
setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected