Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for awaitTerminated (0.06 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        enterRun.await(); // to avoid stopping the service until run() is invoked
    
        service.stopAsync();
        service.stopAsync();
        service.stopAsync().awaitTerminated();
        assertEquals(Service.State.TERMINATED, service.state());
        service.stopAsync().awaitTerminated();
        assertEquals(Service.State.TERMINATED, service.state());
    
        executionThread.join();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
      public void testStop_withoutStart() {
        TestService service = new TestService();
        service.stopAsync().awaitTerminated();
        assertEquals(0, service.startUpCalled);
        assertEquals(0, service.shutDownCalled);
        assertEquals(Service.State.TERMINATED, service.state());
        assertThat(service.transitionStates).isEmpty();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated() {
        delegate.awaitTerminated();
      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
        delegate.awaitTerminated(timeout, unit);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        enterRun.await(); // to avoid stopping the service until run() is invoked
    
        service.stopAsync();
        service.stopAsync();
        service.stopAsync().awaitTerminated();
        assertEquals(Service.State.TERMINATED, service.state());
        service.stopAsync().awaitTerminated();
        assertEquals(Service.State.TERMINATED, service.state());
    
        executionThread.join();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
      public void testStop_withoutStart() {
        TestService service = new TestService();
        service.stopAsync().awaitTerminated();
        assertEquals(0, service.startUpCalled);
        assertEquals(0, service.shutDownCalled);
        assertEquals(Service.State.TERMINATED, service.state());
        assertThat(service.transitionStates).isEmpty();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       */
      @Override
      public final void awaitTerminated() {
        delegate.awaitTerminated();
      }
    
      /**
       * @since 28.0
       */
      @Override
      public final void awaitTerminated(Duration timeout) throws TimeoutException {
        Service.super.awaitTerminated(timeout);
      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AbstractService.java

      }
    
      @Override
      public final void awaitTerminated() {
        monitor.enterWhenUninterruptibly(isStopped);
        try {
          checkCurrentState(TERMINATED);
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @since 28.0
       */
      @Override
      public final void awaitTerminated(Duration timeout) throws TimeoutException {
        Service.super.awaitTerminated(timeout);
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/Service.java

       * @throws IllegalStateException if the service {@linkplain State#FAILED fails}.
       * @since 28.0
       */
      default void awaitTerminated(Duration timeout) throws TimeoutException {
        awaitTerminated(toNanosSaturated(timeout), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Waits for the {@link Service} to reach a terminal state (either {@link Service.State#TERMINATED
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Service.java

       * Waits for the {@link Service} to reach the {@linkplain State#TERMINATED terminated state}.
       *
       * @throws IllegalStateException if the service {@linkplain State#FAILED fails}.
       * @since 15.0
       */
      void awaitTerminated();
    
      /**
       * Waits for the {@link Service} to reach a terminal state (either {@link Service.State#TERMINATED
       * terminated} or {@link Service.State#FAILED failed}) for no more than the given time.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

       */
      @Override
      public final void awaitTerminated() {
        delegate.awaitTerminated();
      }
    
      /**
       * @since 28.0
       */
      @Override
      public final void awaitTerminated(Duration timeout) throws TimeoutException {
        Service.super.awaitTerminated(timeout);
      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top