- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for timeoutMillis (0.3 sec)
-
guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
void assertFutureTimesOut(Future<?> future) { assertFutureTimesOut(future, timeoutMillis()); } /** Checks that future.get times out, with the given millisecond timeout. */ void assertFutureTimesOut(Future<?> future, long timeoutMillis) { long startTime = System.nanoTime(); try { future.get(timeoutMillis, MILLISECONDS); shouldThrow();
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) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
void assertFutureTimesOut(Future<?> future) { assertFutureTimesOut(future, timeoutMillis()); } /** Checks that future.get times out, with the given millisecond timeout. */ void assertFutureTimesOut(Future<?> future, long timeoutMillis) { long startTime = System.nanoTime(); try { future.get(timeoutMillis, MILLISECONDS); shouldThrow();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 37.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
*/ private void tryAcquireUnsuccessfully(long timeoutMillis) { assertFalse(tryAcquireUninterruptibly(semaphore, timeoutMillis, MILLISECONDS)); completed.assertCompletionNotExpected(timeoutMillis); } private void tryAcquireUnsuccessfully(int permits, long timeoutMillis) { assertFalse(tryAcquireUninterruptibly(semaphore, permits, timeoutMillis, MILLISECONDS));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
*/ private void tryAcquireUnsuccessfully(long timeoutMillis) { assertFalse(tryAcquireUninterruptibly(semaphore, timeoutMillis, MILLISECONDS)); completed.assertCompletionNotExpected(timeoutMillis); } private void tryAcquireUnsuccessfully(int permits, long timeoutMillis) { assertFalse(tryAcquireUninterruptibly(semaphore, permits, timeoutMillis, MILLISECONDS));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 31.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RecordingCallback.kt
i.remove() return recordedResponse } } val nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) if (nowMillis >= timeoutMillis) break (this as Object).wait(timeoutMillis - nowMillis) } throw AssertionError("Timed out waiting for response to $url") } companion object { val TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutTask.java
private final TimeoutTarget timeoutTarget; private final long timeoutMillis; private final boolean permanent; private long startTime; private int status = ACTIVE; TimeoutTask(final TimeoutTarget timeoutTarget, final int timeout, final boolean permanent) { this.timeoutTarget = timeoutTarget; this.timeoutMillis = timeout * 1000L; this.permanent = permanent;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
} } } /** * スレッドに割り込みを行い、終了するまで待機します。 * * @param timeoutMillis * 待機する時間(ミリ秒単位) * @return スレッドが終了した場合は<code>true</code> * @throws InterruptedException * 待機中に割り込まれた場合 */ public boolean stop(final long timeoutMillis) throws InterruptedException { final Thread t = this.thread; synchronized (this) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8K bytes - Viewed (0)