Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for addDelayedShutdownHook (0.09 seconds)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       */
      @J2ktIncompatible
      @GwtIncompatible // java.time.Duration
      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static void addDelayedShutdownHook(ExecutorService service, Duration terminationTimeout) {
        addDelayedShutdownHook(service, toNanosSaturated(terminationTimeout), NANOSECONDS);
      }
    
      /**
       * Add a shutdown hook to wait for thread completion in the given {@link ExecutorService service}.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testAddDelayedShutdownHook_success() throws InterruptedException {
        TestApplication application = new TestApplication();
        ExecutorService service = mock(ExecutorService.class);
        application.addDelayedShutdownHook(service, 2, SECONDS);
        verify(service, never()).shutdown();
        application.shutdown();
        InOrder shutdownFirst = inOrder(service);
        shutdownFirst.verify(service).shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testAddDelayedShutdownHook_success() throws InterruptedException {
        TestApplication application = new TestApplication();
        ExecutorService service = mock(ExecutorService.class);
        application.addDelayedShutdownHook(service, 2, SECONDS);
        verify(service, never()).shutdown();
        application.shutdown();
        InOrder shutdownFirst = inOrder(service);
        shutdownFirst.verify(service).shutdown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
Back to Top