- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 501 for runnable (0.05 seconds)
-
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) -
android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
* * @author Kurt Alfred Kluever * @author Martin Buchholz */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ThreadFactoryBuilderTest extends TestCase { private final Runnable monitoredRunnable = () -> completed = true; private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER = (thread, throwable) -> {}; private ThreadFactoryBuilder builder;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
import org.codelibs.core.lang.StringUtil; import org.codelibs.core.log.Logger; /** * A class that handles timers. * * @author higa * */ public class TimeoutManager implements Runnable { private static final Logger logger = Logger.getLogger(TimeoutManager.class); /** * Instance for the singleton. */ protected static final TimeoutManager instance = new TimeoutManager();Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 7.8K 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) -
android/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)