- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 501 for runnable (0.07 seconds)
-
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
completed.assertCompletionExpected(); assertThat(queue.peek()).isEqualTo(""); } private static void scheduleEnableWrites(BlockingQueue<String> queue, long countdownInMillis) { Runnable toRun = new EnableWrites(queue, countdownInMillis); // TODO(cpovirk): automatically fail the test if this thread throws Thread enablerThread = new Thread(toRun); enablerThread.start(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java
* this method to use a custom {@link Executor}, which may configure its worker thread with a * specific name, thread group or priority. The returned executor's {@link * Executor#execute(Runnable) execute()} method is called when this service is started, and should * return promptly. * * <p>The default implementation returns a new {@link Executor} that sets the name of its threadsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 7.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
private val exceptions: BlockingQueue<Exception> = LinkedBlockingQueue() override fun execute(runnable: Runnable) { super.execute { try { runnable.run() } catch (e: Exception) { exceptions.add(e) } } } fun takeException(): Exception = exceptions.take() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
completed.assertCompletionExpected(); assertThat(queue.peek()).isEqualTo(""); } private static void scheduleEnableWrites(BlockingQueue<String> queue, long countdownInMillis) { Runnable toRun = new EnableWrites(queue, countdownInMillis); // TODO(cpovirk): automatically fail the test if this thread throws Thread enablerThread = new Thread(toRun); enablerThread.start(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java
assertTrue(getUninterruptibly(delayedFuture)); assertTrue(Thread.interrupted()); // clears the interrupt state, too assertTrue(sleeper.completed); } private static class SleepingRunnable implements Runnable { final int millis; volatile boolean completed; SleepingRunnable(int millis) { this.millis = millis; } @Override public void run() { try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java
bind(ILoggerFactory.class).toProvider(() -> context.loggerFactory); } }); ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); Runnable settingsCleaner = null; try { container.setLookupRealm(null); container.setLoggerManager(createLoggerManager());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 14.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java
assertTrue(getUninterruptibly(delayedFuture)); assertTrue(Thread.interrupted()); // clears the interrupt state, too assertTrue(sleeper.completed); } private static class SleepingRunnable implements Runnable { final int millis; volatile boolean completed; SleepingRunnable(int millis) { this.millis = millis; } @Override public void run() { try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java
* <p>This class is very similar to {@link SequentialExecutor} with the exception that events can * be added without necessarily executing immediately. */ private static final class PerListenerQueue<L> implements Runnable { final L listener; final Executor executor; @GuardedBy("this") final Queue<ListenerCallQueue.Event<L>> waitQueue = new ArrayDeque<>(); @GuardedBy("this")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 8.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java
@SuppressWarnings("ShortCircuitBoolean") abstract class AbstractCatchingFuture< V extends @Nullable Object, X extends Throwable, F, T extends @Nullable Object> extends FluentFuture.TrustedFuture<V> implements Runnable { static <V extends @Nullable Object, X extends Throwable> ListenableFuture<V> create( ListenableFuture<? extends V> input, Class<X> exceptionType, Function<? super X, ? extends V> fallback,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 18:28:58 GMT 2025 - 9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 12.3K bytes - Click Count (0)