Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for Pair (0.24 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

      @JvmOverloads
      constructor(
        val requiredPlatformName: String? = null,
        val platform: Platform? = null,
      ) : BeforeEachCallback, AfterEachCallback, InvocationInterceptor {
        private val versionChecks = mutableListOf<Pair<Matcher<out Any>, Matcher<out Any>>>()
    
        override fun beforeEach(context: ExtensionContext) {
          setupPlatform()
        }
    
        override fun afterEach(context: ExtensionContext) {
          resetPlatform()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     *
     * All start/connect/acquire events will eventually receive a matching end/release event, either
     * successful (non-null parameters), or failed (non-null throwable). The first common parameters of
     * each event pair are used to link the event in case of concurrent or repeated events e.g.
     * `dnsStart(call, domainName)` → `dnsEnd(call, domainName, inetAddressList)`.
     *
     * Events are typically nested with this structure:
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/HLParameterConversion.kt

        }
    
        override fun convertType(type: KType): KType {
            val first = type.arguments.getOrNull(0)?.type ?: return type
            val second = type.arguments.getOrNull(1)?.type ?: return type
            return Pair::class.createType(
                arguments = listOf(
                    KTypeProjection(
                        variance = KVariance.INVARIANT,
                        type = mappingConversionFirst.convertType(first)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Sep 15 09:32:47 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/async-sql-encode-databases.md

    ```Python
    {**note.dict()}
    ```
    
    `**note.dict()` "unpacks" the key value pairs directly, so, `{**note.dict()}` would be, more or less, a copy of `note.dict()`.
    
    And then, we extend that copy `dict`, adding another key-value pair: `"id": last_record_id`:
    
    ```Python
    {**note.dict(), "id": last_record_id}
    ```
    
    So, the final result returned would be something like:
    
    ```Python
    {
        "id": 1,
        "text": "Some note",
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/flowcontrol/v1beta1/generated.proto

      // Required.
      optional string type = 1;
    }
    
    // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with
    // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
    message FlowSchema {
      // `metadata` is the standard object's metadata.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/flowcontrol/v1beta3/generated.proto

      // Required.
      optional string type = 1;
    }
    
    // FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with
    // similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
    message FlowSchema {
      // `metadata` is the standard object's metadata.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubstitutorProvider.kt

        }
    
    
        private fun collectInheritancePath(
            baseSymbol: FirClassSymbol<*>,
            superSymbol: FirClassSymbol<*>,
        ): List<Pair<ConeClassLikeType, FirRegularClassSymbol>>? {
            val stack = mutableListOf<Pair<ConeClassLikeType, FirRegularClassSymbol>>()
            var result: List<Pair<ConeClassLikeType, FirRegularClassSymbol>>? = null
    
            fun dfs(symbol: FirClassSymbol<*>) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Oct 06 11:39:33 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      @ArgumentsSource(FileSystemParamProvider::class)
      fun emptyCache(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        cache.close()
        assertJournalEquals()
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun recoverFromInitializationFailure(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      val listener = RecordingEventListener()
    
      fun setUp(mode: Pair<CancelMode, ConnectionType>) {
        this.cancelMode = mode.first
        this.connectionType = mode.second
    
        if (connectionType == H2) {
          platform.assumeHttp2Support()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  10. docs/features/events.md

        printEvent("callStart");
      }
    
      @Override public void callEnd(Call call) {
        printEvent("callEnd");
      }
    
      ...
    }
    ```
    
    We can use this listener to race a pair of concurrent HTTP requests:
    
    ```java
    Request washingtonPostRequest = new Request.Builder()
        .url("https://www.washingtonpost.com/")
        .build();
    client.newCall(washingtonPostRequest).enqueue(new Callback() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
Back to top