- Sort Score
- Num 10 results
- Language All
Results 561 - 570 of 1,031 for wait (0.02 seconds)
-
docs/es/docs/tutorial/request-files.md
* `seek(offset)`: Va a la posición de bytes `offset` (`int`) en el archivo. * Por ejemplo, `await myfile.seek(0)` iría al inicio del archivo. * Esto es especialmente útil si ejecutas `await myfile.read()` una vez y luego necesitas leer el contenido nuevamente. * `close()`: Cierra el archivo. Como todos estos métodos son métodos `async`, necesitas "await" para ellos.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 7.6K bytes - Click Count (0) -
docs/pt/docs/advanced/async-tests.md
{* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *} Isso é equivalente a: ```Python response = client.get('/') ``` ...que nós utilizamos para fazer as nossas requisições utilizando o `TestClient`. /// tip | Dica Note que nós estamos utilizando async/await com o novo `AsyncClient` - a requisição é assíncrona. ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 4.3K bytes - Click Count (0) -
src/bytes/buffer_test.go
n, err := buf.Write(testBytes[0:1]) if want := 1; err != nil || n != want { t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil) } check(t, "TestBasicOperations (4)", &buf, "a") buf.WriteByte(testString[1]) check(t, "TestBasicOperations (5)", &buf, "ab") n, err = buf.Write(testBytes[2:26]) if want := 24; err != nil || n != want {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/GcFinalization.java
createUnreachableLatchFinalizer(done); await(done); if (predicate.isDone()) { return; } } while (System.nanoTime() - deadline < 0); throw formatRuntimeException( "Predicate did not become true within %d second timeout", timeoutSeconds); } /** * Waits until the given latch has {@linkplain CountDownLatch#countDown counted down} to zero,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 20:19:19 GMT 2026 - 12.3K bytes - Click Count (0) -
.github/workflows/create_issue.js
const repo = context.payload.repository.name; console.log(`Original PR: ${pr_number} and Rollback Commit: ${rollback_commit}`); // Get the Original PR Details const pr_resp = await github.rest.pulls.get({ owner, repo, pull_number: pr_number }); if (pr_resp.status != 200 || pr_resp.data.state != 'closed') {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Oct 18 23:04:59 GMT 2021 - 2.8K bytes - Click Count (0) -
build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java
* Because the step is not guaranteed to run (e.g. build timeout), we need `KILL_LEAKED_PROCESSES_FROM_PREVIOUS_BUILDS` mode. */ KILL_PROCESSES_STARTED_BY_GRADLE, /** * Run when we want to retry the build. Kill all Gradle processes, regardless of they're global or local. */ KILL_ALL_GRADLE_PROCESSES } private static final Pattern UNIX_PID_PATTERN = Pattern.compile("([0-9]+)");
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Sep 23 13:49:45 GMT 2025 - 12K bytes - Click Count (0) -
internal/lock/lock_windows_test.go
{`\\?\c:\long/foo.txt`, `\\?\c:\long/foo.txt`}, } { in := strings.ReplaceAll(test.in, "long", veryLong) want := strings.ReplaceAll(test.want, "long", veryLong) if got := fixLongPath(in); got != want { got = strings.ReplaceAll(got, veryLong, "long") t.Errorf("fixLongPath(%q) = %q; want %q", test.in, got, test.want) } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Oct 18 18:08:15 GMT 2023 - 2.2K bytes - Click Count (0) -
docs/en/docs/tutorial/request-files.md
* `seek(offset)`: Goes to the byte position `offset` (`int`) in the file. * E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file. As all these methods are `async` methods, you need to "await" them. For example, inside of an `async` *path operation function* you can get the contents with:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7K bytes - Click Count (0) -
src/bytes/bytes_test.go
if got := IndexRune([]byte(tt.in), tt.rune); got != tt.want { t.Errorf("IndexRune(%q, %d) = %v; want %v", tt.in, tt.rune, got, tt.want) } } haystack := []byte("test世界") allocs := testing.AllocsPerRun(1000, func() { if i := IndexRune(haystack, 's'); i != 2 { t.Fatalf("'s' at %d; want 2", i) } if i := IndexRune(haystack, '世'); i != 4 { t.Fatalf("'世' at %d; want 4", i) } }) if allocs != 0 {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/async-tests.md
注意,測試函式現在是 `async def`,而不是像使用 `TestClient` 時那樣僅用 `def`。 /// 接著,我們可以用該應用建立 `AsyncClient`,並以 `await` 發送非同步請求。 {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *} 這等同於: ```Python response = client.get('/') ``` 也就是先前用 `TestClient` 發送請求時所用的寫法。 /// tip 注意,對新的 `AsyncClient` 需搭配 async/await —— 請求是非同步的。 /// /// warningCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.5K bytes - Click Count (0)