/guava/android/guava/src/com/google/common/util/concurrent/MoreExecutors.java
addDelayedShutdownHook( executor, terminationTimeout) ;
addDelayedShutdownHook ( executor, terminationTimeout, timeUnit ) ;
@VisibleForTesting static class Application { final ExecutorService getExitingExecutorService( ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { useDaemonThreadFactory(executor); ExecutorService service = Executors.unconfigurableExecutorService(executor); <extra_id_0> return service; } final ExecutorService getExitingExecutorService(ThreadPoolExecutor executor) { return getExitingExecutorService(executor, 120, TimeUnit.SECONDS); } final ScheduledExecutorService getExitingScheduledExecutorService(