466467468469470471472473474475476
BlockingExecutor executor = getExecutor(work); if (startTimeout == WorkManager.INDEFINITE) { executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); }
470471472473474475476477478479480
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } } catch (ExecutionTimedOutException etoe) { exception = new WorkRejectedException(etoe);
268269270271272273274275276277278
272273274275276277278279280281282
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } completedLatch.await(); } catch (ExecutionTimedOutException etoe)
364365366367368369370371372373374
368369370371372373374375376377378
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } startedLatch.await(); return System.currentTimeMillis() - started;
460461462463464465466467468469470
464465466467468469470471472473474
328329330331332333334335336337338
332333334335336337338339340341342