Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 830 for wait (0.03 sec)

  1. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.await(latch);
        assertEquals(0, latch.getCount());
      }
    
      public void testAwaitDone_future() {
        final SettableFuture<@Nullable Void> future = SettableFuture.create();
        Object unused =
            new Object() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. docs_src/handling_errors/tutorial006.py

    async def custom_http_exception_handler(request, exc):
        print(f"OMG! An HTTP error!: {repr(exc)}")
        return await http_exception_handler(request, exc)
    
    
    @app.exception_handler(RequestValidationError)
    async def validation_exception_handler(request, exc):
        print(f"OMG! The client sent invalid data!: {exc}")
        return await request_validation_exception_handler(request, exc)
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 11:10:33 UTC 2020
    - 928 bytes
    - Viewed (0)
  3. docs_src/generate_clients/tutorial004.js

    import * as fs from 'fs'
    
    async function modifyOpenAPIFile(filePath) {
      try {
        const data = await fs.promises.readFile(filePath)
        const openapiContent = JSON.parse(data)
    
        const paths = openapiContent.paths
        for (const pathKey of Object.keys(paths)) {
          const pathData = paths[pathKey]
          for (const method of Object.keys(pathData)) {
            const operation = pathData[method]
            if (operation.tags && operation.tags.length > 0) {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 14 11:40:05 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. fastapi/security/http.py

                    is not available, instead of erroring out, the dependency result will
                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
                    It is also useful when you want to have authentication that can be
                    provided in one of multiple optional ways (for example, in HTTP Basic
                    authentication or in an HTTP Bearer token).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    โฎ๏ธ โฌ ๐Ÿ, ๐Ÿ“ค **๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ**. ๐Ÿ‘† ๐Ÿ”œ โš™๏ธ โšซ๏ธ โฎ๏ธ `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    ๐Ÿ•โ” ๐Ÿ‘† โœ ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ โš–๏ธ ๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ ๐Ÿ’– ๐Ÿ”›, โšซ๏ธโ” โšซ๏ธ ๐Ÿ”จ ๐Ÿ‘ˆ, โญ ๐Ÿ›ฌ `with` ๐Ÿซ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ› ๏ธ ๐Ÿ“Ÿ โญ `yield`, &amp; โฎ๏ธ โŽ `with` ๐Ÿซ, โšซ๏ธ ๐Ÿ”œ ๐Ÿ› ๏ธ ๐Ÿ“Ÿ โฎ๏ธ `yield`.
    
    ๐Ÿ‘† ๐Ÿ“Ÿ ๐Ÿ–ผ ๐Ÿ”›, ๐Ÿ‘ฅ ๐Ÿšซ โš™๏ธ โšซ๏ธ ๐Ÿ”—, โœ‹๏ธ ๐Ÿ‘ฅ ๐Ÿšถโ€โ™€๏ธ โšซ๏ธ FastAPI โšซ๏ธ โš™๏ธ โšซ๏ธ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tests/test_route_scope.py

    
    @app.websocket("/items/{item_id}")
    async def websocket_item(item_id: str, websocket: WebSocket):
        route: APIWebSocketRoute = websocket.scope["route"]
        await websocket.accept()
        await websocket.send_json({"item_id": item_id, "path": route.path})
    
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/users/rick")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Feb 08 10:23:07 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        assertEquals(3L, countDownLatch.getCount());
    
        list.execute();
    
        // Verify that all of the runnables execute in a reasonable amount of time.
        assertTrue(countDownLatch.await(1L, SECONDS));
      }
    
      public void testExecute_idempotent() {
        final AtomicInteger runCalled = new AtomicInteger();
        list.add(
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. internal/config/storageclass/storage-class_test.go

    	tests := []struct {
    		sc   string
    		want bool
    	}{
    		{"STANDARD", true},
    		{"REDUCED_REDUNDANCY", true},
    		{"", false},
    		{"INVALID", false},
    		{"123", false},
    		{"MINIO_STORAGE_CLASS_RRS", false},
    		{"MINIO_STORAGE_CLASS_STANDARD", false},
    	}
    	for i, tt := range tests {
    		if got := IsValid(tt.sc); got != tt.want {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/async-tests.md

    Dann kรถnnen wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden.
    
    {* ../../docs_src/async_tests/test_main.py hl[9:12] *}
    
    Das ist das ร„quivalent zu:
    
    ```Python
    response = client.get('/')
    ```
    
    ... welches wir verwendet haben, um unsere Requests mit dem `TestClient` zu machen.
    
    /// tip | "Tipp"
    
    Beachten Sie, dass wir async/await mit dem neuen `AsyncClient` verwenden โ€“ der Request ist asynchron.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:34:47 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. docs/ja/docs/async.md

    # ไธฆ่กŒๅ‡ฆ็†ใจ async / await
    
    *path operation ้–ขๆ•ฐ*ใฎใŸใ‚ใฎ `async def` ใซ้–ขใ™ใ‚‹่ฉณ็ดฐใจ้žๅŒๆœŸ (asynchronous) ใ‚ณใƒผใƒ‰ใ€ไธฆ่กŒๅ‡ฆ็† (Concurrency)ใ€ใใ—ใฆใ€ไธฆๅˆ—ๅ‡ฆ็† (Parallelism) ใฎ่ƒŒๆ™ฏใซใคใ„ใฆใ€‚
    
    ## ๆ€ฅใ„ใงใ„ใพใ™ใ‹๏ผŸ
    
    <abbr title="too long; didn't read (้•ทใ™ใŽใฆ่ชญใ‚ใชใ„ไบบใฎใŸใ‚ใฎ่ฆ็ด„ใจใ„ใ†ๆ„ๅ‘ณใฎใ‚นใƒฉใƒณใ‚ฐ)"><strong>TL;DR:</strong></abbr>
    
    ๆฌกใฎใ‚ˆใ†ใชใ€`await` ใ‚’ไฝฟ็”จใ—ใฆๅ‘ผใณๅ‡บใ™ในใใ‚ตใƒผใƒ‰ใƒ‘ใƒผใƒ†ใ‚ฃใƒฉใ‚คใƒ–ใƒฉใƒชใ‚’ไฝฟ็”จใ—ใฆใ„ใ‚‹ๅ ดๅˆ:
    
    ```Python
    results = await some_library()
    ```
    
    ไปฅไธ‹ใฎๆง˜ใซ `async def` ใ‚’ไฝฟ็”จใ—ใฆ*path operation ้–ขๆ•ฐ*ใ‚’ๅฎฃ่จ€ใ—ใพใ™ใ€‚
    
    ```Python hl_lines="2"
    @app.get('/')
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top