void (long timeout, @NotNull TimeUnit unit) { try { myAlarm.waitForAllExecuted(timeout, unit); } catch (InterruptedException | ExecutionException | TimeoutException e) { throw new RuntimeException(e); } }