- Sort Score
- Num 10 results
- Language All
Results 941 - 950 of 6,561 for _this5 (0.04 seconds)
-
docs/recipes.md
```kotlin if (response.responseCount >= 3) { return null // If we've failed 3 times, give up. } ``` This above code relies on this `responseCount` extension val: ```kotlin val Response.responseCount: Int get() = generateSequence(this) { it.priorResponse }.count() ``` === ":material-language-java: Java" ```java private final OkHttpClient client;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 47.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Task.kt
internal var queue: TaskQueue? = null /** Undefined unless this is in [TaskQueue.futureTasks]. */ internal var nextExecuteNanoTime = -1L /** Returns the delay in nanoseconds until the next execution, or -1L to not reschedule. */ abstract fun runOnce(): Long internal fun initQueue(queue: TaskQueue) { if (this.queue === queue) return check(this.queue === null) { "task is in multiple queues" } this.queue = queue
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java
* pattern</a>. * * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code * default} methods. Instead, it inherits their default implementations. When those implementations * invoke methods, they invoke methods on the {@code ForwardingBlockingQueue}. * * @author Raimundo Mirisola * @param <E> the type of elements held in this collection * @since 4.0 */ @J2ktIncompatible @GwtIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java
@NullMarked public interface TestContainerGenerator<T, E extends @Nullable Object> { /** Returns the sample elements that this generate populates its container with. */ SampleElements<E> samples(); /** * Creates a new container containing the given elements. TODO: would be nice to figure out how to * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an * array of the erased type. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java
* Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 19 19:08:55 GMT 2023 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractIterator.java
* result in an {@link IllegalStateException}. * * <p>The implementation of this method may not invoke the {@code hasNext}, {@code next}, or * {@link #peek()} methods on this instance; if it does, an {@code IllegalStateException} will * result. * * @return the next element if there was one. If {@code endOfData} was called during execution,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 6.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Settings.kt
values.fill(0) } operator fun set( id: Int, value: Int, ): Settings { if (id < 0 || id >= values.size) { return this // Discard unknown settings. } val bit = 1 shl id set = set or bit values[id] = value return this } /** Returns true if a value has been assigned for the setting `id`. */ fun isSet(id: Int): Boolean { val bit = 1 shl id
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
nanos.addAndGet(nanoseconds); return this; } /** * Advances the ticker value by {@code duration}. * * @since 33.1.0 (but since 28.0 in the JRE <a * href="https://github.com/google/guava#guava-google-core-libraries-for-java">flavor</a>) */ @GwtIncompatible @J2ktIncompatible @CanIgnoreReturnValue @IgnoreJRERequirement // TODO: b/288085449 - Remove this once we use library-desugaring scents.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 4.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java
* Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Feb 05 09:45:47 GMT 2024 - 3.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
assertEquals( "Shouldn't catch any more events when unregistered.", expectedEvents, catcher2.getEvents()); } // NOTE: This test will always pass if register() is thread-safe but may also // pass if it isn't, though this is unlikely. public void testRegisterThreadSafety() throws Exception { List<StringCatcher> catchers = new CopyOnWriteArrayList<>();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0)