- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 408 for runnable (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java
* * {@snippet : * final String name = ...; * inFlight.add(name); * ListenableFuture<Result> future = service.query(name); * future.addListener(new Runnable() { * public void run() { * processedCount.incrementAndGet(); * inFlight.remove(name); * lastProcessed.set(name); * logger.info("Done with {0}", name); * } * }, executor); * } *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
assertEquals(currentTime, t.ltime, "ltime should be mutable"); } @Test @DisplayName("TestLocking implements Runnable") void testImplementsRunnable() { TestLocking t = new TestLocking(); assertTrue(t instanceof Runnable, "TestLocking should implement Runnable"); } @Test @DisplayName("run method handles null URL gracefully") void testRunWithNullUrl() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java
import org.jspecify.annotations.Nullable; /** Emulation for InterruptibleTask in GWT. */ abstract class InterruptibleTask<T extends @Nullable Object> implements Runnable { @Override public void run() { T result = null; Throwable error = null; if (isDone()) { return; } try { result = runInterruptibly(); } catch (Throwable t) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java
public class BuildThreadFactory implements ThreadFactory { private final AtomicInteger id = new AtomicInteger(); private static final String PREFIX = "BuilderThread"; @Override public Thread newThread(Runnable r) { return new Thread(r, String.format("%s-%d", PREFIX, id.getAndIncrement())); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
MILLISECONDS.sleep(DELAY_MS); throw new SampleException(); }; private static final Runnable GOOD_RUNNABLE = () -> { try { MILLISECONDS.sleep(DELAY_MS); } catch (InterruptedException e) { throw new RuntimeException(e); } }; private static final Runnable BAD_RUNNABLE = () -> { try { MILLISECONDS.sleep(DELAY_MS);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
} public void testAnonymousClassDefaultConstructor() { int i = 1; String s = "hello world"; Class<?> anonymous = new Runnable() { @Override public void run() { System.out.println(s + i); } }.getClass(); Constructor<?> constructor = anonymous.getDeclaredConstructors()[0];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
} @Test @DisplayName("No collaborator interaction occurs if exception is thrown beforehand") void noInteraction_whenExceptionOccursBeforeCall() { // Arrange Runnable r = mock(Runnable.class); // Act: simulate control flow where the exception happens before any collaborator is used try { throw new SmbUnsupportedOperationException();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
before.assertRun(); inBetween.assertRun(); after.assertRun(); } public void testMisbehavingListenerAlreadyDone() { class BadRunnableException extends RuntimeException {} Runnable bad = () -> { throw new BadRunnableException(); }; future.set(1); future.addListener(bad, directExecutor()); // BadRunnableException must not propagate. }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 16.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
} private static <T> Callable<T> callableThrowing(Exception exception) { return () -> { throw exception; }; } private static Runnable runnableThrowing(RuntimeException e) { return () -> { throw e; }; } @SuppressWarnings("serial") private static class SampleCheckedException extends Exception {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.1K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/03-gopls.yml
validations: required: true - type: textarea id: what-did-you-do attributes: label: "What did you do?" description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is better. A failing unit test is the best." validations: required: true - type: textarea id: actual-behavior attributes:Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri May 24 17:09:04 GMT 2024 - 1.8K bytes - Click Count (0)