- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 308 for run (0.22 sec)
-
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
@Override protected void setUp() throws Exception { super.setUp(); exec = Executors.newCachedThreadPool(); task.addListener( new Runnable() { @Override public void run() { listenerLatch.countDown(); } }, directExecutor()); } @Override protected void tearDown() throws Exception { if (exec != null) { exec.shutdown();
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.7K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/util/concurrent/Runnables.java
@ElementTypesAreNonnullByDefault public final class Runnables { private static final Runnable EMPTY_RUNNABLE = new Runnable() { @Override public void run() {} }; /** Returns a {@link Runnable} instance that does nothing when run. */ public static Runnable doNothing() { return EMPTY_RUNNABLE; } private Runnables() {}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 18:32:03 GMT 2023 - 1.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClusterException.java
* presented below: * * <pre> * void runManyThings({@literal List<ThingToRun>} thingsToRun) { * for (ThingToRun thingToRun : thingsToRun) { * thingToRun.run(); // say this may throw an exception, but you want to * // always run all thingsToRun * } * } * </pre> * * <p>This is what the code would become: * * <pre> * void runManyThings({@literal List<ThingToRun>} thingsToRun) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/AndroidIncompatible.java
import com.google.common.annotations.GwtCompatible; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * Signifies that a test should not be run under Android. This annotation is respected only by our * Google-internal Android suite generators. Note that those generators also suppress any test * annotated with LargeTest. *
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Jul 07 15:40:13 GMT 2023 - 3.9K bytes - Viewed (0) -
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) -
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) -
android/guava/src/com/google/common/util/concurrent/TimeLimiter.java
/** * Invokes a specified Runnable, timing out after the specified time limit. If the target method * run finishes before the limit is reached, this method returns or a wrapped exception is * propagated. If, on the other hand, the time limit is reached, we attempt to abort the run, and * throw a {@link TimeoutException} to the caller. * * @param runnable the Runnable to execute
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 18:32:03 GMT 2023 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertSame(refreshKey, map.get(refreshKey)); new Thread() { @Override public void run() { cache.getUnchecked(getKey); getFinishedSignal.countDown(); } }.start(); new Thread() { @Override public void run() { cache.refresh(refreshKey); getFinishedSignal.countDown(); } }.start();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 86.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java
* filesystem) does our prod code look up the username. Thus, this test doesn't necessarily test * anything interesting under most environments. Still, we can run it (except for Android, at * least old versions), so we mostly do. This is useful because we don't actually run our CI on * Windows under Java 8, at least as of this writing. * * Under Windows in particular, we want to test that: *
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 4.3K bytes - Viewed (0)