501502503504505506507508509510511
BlockingExecutor executor = getExecutor(work); if (startTimeout == WorkManager.INDEFINITE) { executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); }
505506507508509510511512513514515
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } } catch (ExecutionTimedOutException etoe) { exception = new WorkRejectedException(etoe);
277278279280281282283284285286287
281282283284285286287288289290291
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } completedLatch.await(); } catch (ExecutionTimedOutException etoe)
376377378379380381382383384385386
380381382383384385386387388389390
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } startedLatch.await(); return System.currentTimeMillis() - started;
475476477478479480481482483484485
479480481482483484485486487488489