(final Duration timeout)
| 91 | } |
| 92 | |
| 93 | @Override |
| 94 | public void join(final Duration timeout) throws CheckedFutureException { |
| 95 | try { |
| 96 | Thread.sleep(timeout.toMillis()); |
| 97 | } catch (final InterruptedException e) { |
| 98 | throw new CheckedFutureException(e); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | @SuppressWarnings("unchecked") |
| 103 | @Override |