Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for awaitTermination (0.16 sec)

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

        assertFalse(executor.isTerminated());
    
        // WAIT #2
        barrier.await(1, SECONDS);
        assertFalse(executor.awaitTermination(20, MILLISECONDS));
    
        // WAIT #3
        barrier.await(1, SECONDS);
        assertTrue(executor.awaitTermination(1, SECONDS));
        assertTrue(executor.awaitTermination(0, SECONDS));
        assertTrue(executor.isShutdown());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        assertFalse(executor.isTerminated());
    
        // WAIT #2
        barrier.await(1, SECONDS);
        assertFalse(executor.awaitTermination(20, MILLISECONDS));
    
        // WAIT #3
        barrier.await(1, SECONDS);
        assertTrue(executor.awaitTermination(1, SECONDS));
        assertTrue(executor.awaitTermination(0, SECONDS));
        assertTrue(executor.isShutdown());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

      public void testDelegations() throws InterruptedException {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        assertFalse(testExecutor.awaitTermination(10, MILLISECONDS));
        mock.assertLastMethodCalled("awaitTermination");
        assertFalse(testExecutor.isTerminated());
        mock.assertLastMethodCalled("isTerminated");
        assertFalse(testExecutor.isShutdown());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      /**
       * Invokes {@code executor.}{@link ExecutorService#awaitTermination(long, TimeUnit)
       * awaitTermination(long, TimeUnit)} uninterruptibly with no timeout.
       *
       * @since 30.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      /**
       * Invokes {@code executor.}{@link ExecutorService#awaitTermination(long, TimeUnit)
       * awaitTermination(long, TimeUnit)} uninterruptibly with no timeout.
       *
       * @since 30.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

      public void testDelegations() throws InterruptedException {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        assertFalse(testExecutor.awaitTermination(10, MILLISECONDS));
        mock.assertLastMethodCalled("awaitTermination");
        assertFalse(testExecutor.isTerminated());
        mock.assertLastMethodCalled("isTerminated");
        assertFalse(testExecutor.isShutdown());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                    }
                    Thread.sleep(500);
                }
                assertEquals(CrawlerStatus.RUNNING, crawler2.crawlerContext.getStatus());
    
                crawler1.awaitTermination();
                crawler2.awaitTermination();
    
                assertEquals(maxCount, dataService.getCount(sessionId1));
                assertEquals(maxCount, dataService.getCount(sessionId2));
    
                UrlQueue urlQueue;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        assertThat(future2.isDone()).isFalse();
    
        // Stop the first task. The second task should then run.
        blockingCallable.stop();
        executor.shutdown();
        assertThat(executor.awaitTermination(10, SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      public void testSecondTaskWaitsForFirstEvenIfCancelled() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/MoreExecutors.java

        ListeningDecorator(ExecutorService delegate) {
          this.delegate = checkNotNull(delegate);
        }
    
        @Override
        public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
          return delegate.awaitTermination(timeout, unit);
        }
    
        @Override
        public final boolean isShutdown() {
          return delegate.isShutdown();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        assertThat(future2.isDone()).isFalse();
    
        // Stop the first task. The second task should then run.
        blockingCallable.stop();
        executor.shutdown();
        assertThat(executor.awaitTermination(10, SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      public void testSecondTaskWaitsForFirstEvenIfCancelled() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top