()
| 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(); |