- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 184 for InterruptedException (0.15 sec)
-
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/QueueDispatcher.kt
* limitations under the License. */ package okhttp3.mockwebserver import mockwebserver3.QueueDispatcher class QueueDispatcher : Dispatcher() { internal val delegate = QueueDispatcher() @Throws(InterruptedException::class) override fun dispatch(request: RecordedRequest): MockResponse { throw UnsupportedOperationException("unexpected call") } override fun peek(): MockResponse {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Oct 18 12:55:43 UTC 2020 - 1.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
* @throws NullPointerException if any task is null */ @Override <T extends @Nullable Object> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException; /** * {@inheritDoc} * * <p>All elements in the returned list must be {@link ListenableFuture} instances. The easiest
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 10:45:35 UTC 2021 - 4.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java
if (!set) { synchronized (this) { if (!set) { try { this.wait(); } catch (InterruptedException e) { // Ignore } } } } return model; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
aboutToAcquire(this); try { super.lock(); } finally { lockStateChanged(this); } } @Override public void lockInterruptibly() throws InterruptedException { aboutToAcquire(this); try { super.lockInterruptibly(); } finally { lockStateChanged(this); } } @Override public boolean tryLock() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 35.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Platform.java
return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt(); } } private Platform() {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 10 12:27:25 UTC 2022 - 1.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Platform.java
return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt(); } } private Platform() {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 10 12:27:25 UTC 2022 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
assertFalse(shutDownCalled); runCalled = true; assertEquals(State.RUNNING, state()); enterRun.countDown(); try { exitRun.await(); } catch (InterruptedException e) { throw new RuntimeException(e); } } @Override protected void shutDown() { assertTrue(startUpCalled); assertTrue(runCalled);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 12.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt
override fun contentType(): MediaType? = null override fun writeTo(sink: BufferedSink) { requestBodySinks.add(sink) } override fun isDuplex(): Boolean = true @Throws(InterruptedException::class) fun takeSink(): BufferedSink { return requestBodySinks.poll(5, SECONDS) ?: throw AssertionError("no sink to take") } fun assertNoMoreSinks() { assertTrue(requestBodySinks.isEmpty()) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.5K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/Dispatcher.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.mockwebserver abstract class Dispatcher { @Throws(InterruptedException::class) abstract fun dispatch(request: RecordedRequest): MockResponse open fun peek(): MockResponse { return MockResponse().apply { this.socketPolicy = SocketPolicy.KEEP_OPEN } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Oct 18 12:55:43 UTC 2020 - 909 bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
} }); assertTrue(map.isEmpty()); } // ---------------------------------------------------------------- // Test that interrupts result in RuntimeException, not InterruptedException. // Trickier than it looks, because runFinalization swallows interrupts. // ---------------------------------------------------------------- class Interruptenator extends Thread {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 7.9K bytes - Viewed (0)