- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 51 for toNanos (0.04 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
// Guarded by this. private val currentPushRequests = mutableSetOf<Int>() init { if (builder.pingIntervalMillis != 0) { val pingIntervalNanos = TimeUnit.MILLISECONDS.toNanos(builder.pingIntervalMillis.toLong()) writerQueue.schedule("$connectionName ping", pingIntervalNanos) { val failDueToMissingPong = withLock { if (intervalPongsReceived < intervalPingsSent) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 31.9K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
if (effect.closeSocket) socket.close() } Stall -> { // Sleep until the socket is closed. socket.sleepWhileOpen(TimeUnit.MINUTES.toNanos(60)) error("expected timeout") } } return true } @Throws(IOException::class) private fun readEmptyLine(source: BufferedSource) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 40.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
// and the approximate actual delay, to be robust to variance in thread scheduling. char overWaitNanosFirstDigit = Long.toString(thread.timeSpentBlocked - MILLISECONDS.toNanos(longWait ? 5000 : 3000)) .charAt(0); if (overWaitNanosFirstDigit < '4') { overWaitNanosFirstDigit = '9'; } String nanosRegex = "[4-" + overWaitNanosFirstDigit + "][0-9]+";Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 45.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
// and the approximate actual delay, to be robust to variance in thread scheduling. char overWaitNanosFirstDigit = Long.toString(thread.timeSpentBlocked - MILLISECONDS.toNanos(longWait ? 5000 : 3000)) .charAt(0); if (overWaitNanosFirstDigit < '4') { overWaitNanosFirstDigit = '9'; } String nanosRegex = "[4-" + overWaitNanosFirstDigit + "][0-9]+";Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 45.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
connection.writePingAndAwaitPong() val elapsedNanos = System.nanoTime() - pingAtNanos assertThat(elapsedNanos).isGreaterThan(0L) assertThat(elapsedNanos).isLessThan(TimeUnit.SECONDS.toNanos(1)) // Verify the peer received what was expected. val pingFrame = peer.takeFrame() assertThat(pingFrame.type).isEqualTo(Http2.TYPE_PING) assertThat(pingFrame.streamId).isEqualTo(0)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0) -
docs/es/docs/tutorial/body.md
Puedes declarar parámetros de path y request body al mismo tiempo. **FastAPI** reconocerá que los parámetros de función que coinciden con los parámetros de path deben ser **tomados del path**, y que los parámetros de función que se declaran como modelos de Pydantic deben ser **tomados del request body**. {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *} ## Request body + path + parámetros de query { #request-body-path-query-parameters }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/es/docs/tutorial/extra-models.md
```Python { 'username': 'john', 'password': 'secret', 'email': '******@****.***', 'full_name': None, } ``` #### Desempaquetando un `dict` { #unpacking-a-dict } Si tomamos un `dict` como `user_dict` y lo pasamos a una función (o clase) con `**user_dict`, Python lo "desempaquetará". Pasará las claves y valores del `user_dict` directamente como argumentos clave-valor.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 7.2K bytes - Click Count (0) -
src/archive/tar/strconv_test.go
} } } func BenchmarkParsePAXTime(b *testing.B) { tests := []struct { name string in string want time.Time ok bool }{ { name: "NoNanos", in: "123456", want: time.Unix(123456, 0), ok: true, }, { name: "ExactNanos", in: "1.123456789", want: time.Unix(1, 123456789), ok: true, }, {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Sep 11 17:52:43 GMT 2025 - 15K bytes - Click Count (0) -
docs/es/docs/tutorial/response-model.md
Por lo tanto, se incluirán en el response JSON. /// tip | Consejo Ten en cuenta que los valores por defecto pueden ser cualquier cosa, no solo `None`.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 17.1K bytes - Click Count (0) -
docs/es/docs/index.md
* Sistemas de documentación interactiva. * Sistemas de generación automática de código cliente, para muchos lenguajes. * Proporcionará 2 interfaces web de documentación interactiva directamente. --- Solo tocamos los conceptos básicos, pero ya te haces una idea de cómo funciona todo. Intenta cambiar la línea con: ```Python return {"item_name": item.name, "item_id": item_id} ``` ...desde: ```PythonCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 22.6K bytes - Click Count (0)