Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for awaitTermination (0.21 sec)

  1. 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, TimeUnit.SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      public void testSecondTaskWaitsForFirstEvenIfCancelled() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  2. 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, TimeUnit.SECONDS)).isTrue();
        assertThat(getDone(future2)).isFalse();
      }
    
      public void testSecondTaskWaitsForFirstEvenIfCancelled() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
Back to top