Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for run (0.13 sec)

  1. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              public Runnable apply(final Runnable runnable) {
                return new Runnable() {
                  @Override
                  public void run() {
                    runnable.run();
                    runnable.run();
                  }
                };
              }
            },
            "run()",
            "invoked more than once");
      }
    
      public void testFailsToForwardParameters() {
        assertFailure(
            Adder.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

          // allocation.
          submittedTask =
              new Runnable() {
                @Override
                public void run() {
                  task.run();
                }
    
                @Override
                public String toString() {
                  return task.toString();
                }
              };
          queue.add(submittedTask);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * there is no current security manager, the runnable is run twice, both with and without a
       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
            };
        Runnable tearDown =
            new Runnable() {
              @Override
              public void run() {
                assertTrue("setUp should have run", setUpRan.getAndSet(false));
              }
            };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
            };
        Runnable tearDown =
            new Runnable() {
              @Override
              public void run() {
                assertTrue("setUp should have run", setUpRan.getAndSet(false));
              }
            };
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          new Runnable() {
            @Override
            public void run() {
              list.execute();
            }
          };
    
      @Benchmark
      int addThenExecute_multiThreaded(final int reps) throws InterruptedException {
        Runnable addTask =
            new Runnable() {
              @Override
              public void run() {
                for (int i = 0; i < numListeners; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        }
      }
    
      public void testAwaitTerminated() throws Exception {
        final NoOpService service = new NoOpService();
        Thread waiter =
            new Thread() {
              @Override
              public void run() {
                service.awaitTerminated();
              }
            };
        waiter.start();
        service.startAsync().awaitRunning();
        assertEquals(State.RUNNING, service.state());
        service.stopAsync();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testMisbehavingListenerAlreadyDone() {
        class BadRunnableException extends RuntimeException {}
    
        Runnable bad =
            new Runnable() {
              @Override
              public void run() {
                throw new BadRunnableException();
              }
            };
    
        future.set(1);
        future.addListener(bad, directExecutor()); // BadRunnableException must not propagate.
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

      }
    
      /**
       * Registers separate success and failure callbacks to be run when this {@code Future}'s
       * computation is {@linkplain java.util.concurrent.Future#isDone() complete} or, if the
       * computation is already complete, immediately.
       *
       * <p>The callback is run on {@code executor}. There is no guaranteed ordering of execution of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        fakePool.execute(
            new Runnable() {
              @Override
              public void run() {
                Thread.currentThread().interrupt();
              }
            });
        // Run a task that expects that it is not interrupted while it is running.
        e.execute(
            new Runnable() {
              @Override
              public void run() {
                assertThat(Thread.currentThread().isInterrupted()).isFalse();
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
Back to top