156157158159160161162163164165166
BlockingExecutor executor = getExecutor(work); if (startTimeout == WorkManager.INDEFINITE) { executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); }
160161162163164165166167168169170
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } completedLatch.await(); } catch (ExecutionTimedOutException etoe)
248249250251252253254255256257258
252253254255256257258259260261262
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } startedLatch.await(); return System.currentTimeMillis() - started;
340341342343344345346347348349350
344345346347348349350351352353354
{ executor.executeBlocking(wrapper); } else { executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS); } } catch (ExecutionTimedOutException etoe) { exception = new WorkRejectedException(etoe);
354355356357358359360361362363364
358359360361362363364365366367368
467468469470471472473474475476477
471472473474475476477478479480481