Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,132 for Await (0.05 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/java/ParallelTestTaskIntegrationTest.groovy

        dependencies { testImplementation 'junit:junit:4.13' }
    
        test {
            doFirst {
                println path + " waiting for other tests..."
                latch.countDown()
                latch.await()
                println path + " go"
            }
    
            executable = "$java"
        }
    }
    """
            subprojects.each { subproject ->
                settingsFile << "include '$subproject'\n"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/websockets.md

    ## Nachrichten erwarten und Nachrichten senden
    
    In Ihrer WebSocket-Route können Sie Nachrichten `await`en und Nachrichten senden.
    
    ```Python hl_lines="48-52"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    Sie können Binär-, Text- und JSON-Daten empfangen und senden.
    
    ## Es ausprobieren
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

                      allExceptions.add(e)
                    }
                    latch.countDown()
                  }
                },
              )
            }
    
            latch.await()
    
            // No mutations should be possible after this point
            if (allAddresses.isEmpty()) {
              val first = allExceptions.firstOrNull() ?: UnknownHostException("No results for $hostname")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java

            }
        }
    
        void waitForRequests(int requestCount) {
            lock.lock();
            try {
                while (this.requestsStarted < requestCount) {
                    try {
                        condition.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
            } finally {
                lock.unlock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/internal/deployment/JavaApplicationDeploymentIntegrationTest.groovy

                            writer.println(Message.message + " > " + arg);
                        }
                        writer.close();
    
                        // wait forever
                        new File(args[1]).createNewFile();
                        new CountDownLatch(1).await(10, TimeUnit.MINUTES);
                    }
                }
            """
            messageSrc = file("src/main/java/org/gradle/deployment/Message.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 04:59:12 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/events.md

    !!! info "说明"
    
        `open()` 函数中,`mode="a"` 指的是**追加**。因此这行文本会添加在文件已有内容之后,不会覆盖之前的内容。
    
    !!! tip "提示"
    
        注意,本例使用 Python `open()` 标准函数与文件交互。
    
        这个函数执行 I/O(输入/输出)操作,需要等待内容写进磁盘。
    
        但 `open()` 函数不支持使用 `async` 与 `await`。
    
        因此,声明事件处理函数要使用 `def`,不能使用 `asnyc def`。
    
    !!! info "说明"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMaxNConcurrentRequests.java

                previous.assertCanWait();
                if (notReceived.isEmpty()) {
                    // Have received all requests so downstream can wait.
                    return;
                }
                if (!isAutoRelease()) {
                    throw new IllegalStateException(String.format("Cannot wait as no requests have been released. Waiting for %s, received %s.", format(notReceived), format(received)));
                }
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/async/ServiceLifecycle.java

                }
                if (state == State.RUNNING) {
                    state = State.STOPPING;
                }
                while (!usages.isEmpty()) {
                    try {
                        condition.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                if (state != State.STOPPED) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In recent versions of Python, there's also an **async context manager**. You would use it with `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top