Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TrustedListenableFutureTask (0.14 sec)

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

     */
    public class AbstractListeningExecutorServiceTest extends TestCase {
    
      public void testSubmit() throws Exception {
        /*
         * Mostly just tests that TrustedListenableFutureTask are created and run; tests for
         * TrustedListenableFutureTask should ensure that listeners are called correctly.
         */
    
        TestListeningExecutorService e = new TestListeningExecutorService();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

     */
    public class AbstractListeningExecutorServiceTest extends TestCase {
    
      public void testSubmit() throws Exception {
        /*
         * Mostly just tests that TrustedListenableFutureTask are created and run; tests for
         * TrustedListenableFutureTask should ensure that listeners are called correctly.
         */
    
        TestListeningExecutorService e = new TestListeningExecutorService();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Test case for {@link TrustedListenableFutureTask}. */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class TrustedListenableFutureTaskTest extends TestCase {
    
      public void testSuccessful() throws Exception {
        TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2));
        assertFalse(task.isDone());
        task.run();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java

      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      protected final <T extends @Nullable Object> RunnableFuture<T> newTaskFor(
          Runnable runnable, @ParametricNullness T value) {
        return TrustedListenableFutureTask.create(runnable, value);
      }
    
      /**
       * @since 19.0 (present with return type {@code ListenableFutureTask} since 14.0)
       */
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java

      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      protected final <T extends @Nullable Object> RunnableFuture<T> newTaskFor(
          Runnable runnable, @ParametricNullness T value) {
        return TrustedListenableFutureTask.create(runnable, value);
      }
    
      /**
       * @since 19.0 (present with return type {@code ListenableFutureTask} since 14.0)
       */
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top