- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 98 for Dispatcher (0.04 seconds)
-
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/MavenSecDispatcher.java
@Deprecated(since = "4.0.0") public class MavenSecDispatcher extends DefaultSecDispatcher { private static final String FILE_NAME = "settings-security4.xml"; @Inject public MavenSecDispatcher(Map<String, Dispatcher> dispatchers) { super(dispatchers, configurationFile()); } private static Path configurationFile() { String mavenUserConf = System.getProperty(Constants.MAVEN_USER_CONF); if (mavenUserConf != null) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
this.taskRunner = okHttpClient.taskRunner } /** * Sets the dispatcher used to set policy and execute asynchronous requests. Must not be null. */ fun dispatcher(dispatcher: Dispatcher) = apply { this.dispatcher = dispatcher } /** * Sets the connection pool used to recycle HTTP and HTTPS connections. *Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 51.4K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt
var bodyLimit: Long by delegate::bodyLimit var serverSocketFactory: ServerSocketFactory? by delegate::serverSocketFactory var dispatcher: Dispatcher = QueueDispatcher() set(value) { field = value delegate.dispatcher = value.wrap() } val port: Int get() { before() // This implicitly starts the delegate. return delegate.port }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 00:19:42 GMT 2025 - 4.6K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/AsyncEventBus.java
* down the executor after the last event has been posted to this event bus. */ public AsyncEventBus(String identifier, Executor executor) { super(identifier, executor, Dispatcher.legacyAsync(), LoggingHandler.INSTANCE); } /** * Creates a new AsyncEventBus that will use {@code executor} to dispatch events. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
call: Call, dispatcher: Dispatcher, ) { for (delegate in eventListeners) { delegate.dispatcherQueueStart(call, dispatcher) } } override fun dispatcherQueueEnd( call: Call, dispatcher: Dispatcher, ) { for (delegate in eventListeners) { delegate.dispatcherQueueEnd(call, dispatcher) } }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:03:04 GMT 2025 - 24.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal import okhttp3.Cache import okhttp3.Dispatcher import okhttp3.Response import okhttp3.internal.connection.Exchange import okhttp3.internal.connection.RealCall import okhttp3.internal.connection.RealConnection import okio.FileSystem import okio.Path
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.3K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt
import java.util.concurrent.BlockingQueue import java.util.concurrent.LinkedBlockingQueue import java.util.logging.Logger /** * Default dispatcher that processes a script of responses. Populate the script by calling * [enqueue]. */ public open class QueueDispatcher : Dispatcher() { protected val responseQueue: BlockingQueue<MockResponse> = LinkedBlockingQueue() private var failFastResponse: MockResponse? = nullCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jun 14 16:09:26 GMT 2025 - 2.9K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
import mockwebserver3.SocketEffect.ShutdownConnection import okio.Buffer import okio.ByteString internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher { if (this is QueueDispatcher) return this.delegate val delegate = this return object : mockwebserver3.Dispatcher() { override fun dispatch(request: mockwebserver3.RecordedRequest): mockwebserver3.MockResponse = delegate.dispatch(request.unwrap()).wrap()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 4.1K bytes - Click Count (1) -
okhttp-coroutines/README.md
```kotlin val call = client.newCall(request) call.executeAsync().use { response -> withContext(Dispatchers.IO) { println(response.body?.string()) } } ``` This is implemented using `suspendCancellableCoroutine` but uses the standard Dispatcher in OkHttp. This means that by default Kotlin's Dispatchers are not used. Cancellation if implemented sensibly in both directions.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Nov 09 15:47:27 GMT 2023 - 609 bytes - Click Count (0) -
mockwebserver/api/mockwebserver3.api
public abstract class mockwebserver3/Dispatcher : java/io/Closeable { public fun <init> ()V public fun close ()V public abstract fun dispatch (Lmockwebserver3/RecordedRequest;)Lmockwebserver3/MockResponse; public fun peek ()Lmockwebserver3/MockResponse; } public final class mockwebserver3/MockResponse { public fun <init> (ILokhttp3/Headers;Ljava/lang/String;)VCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 11.8K bytes - Click Count (0)