Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,132 for Await (0.09 sec)

  1. docs/ko/docs/advanced/events.md

    !!! tip "팁"
        이 예제에서는 파일과 상호작용 하기 위해 파이썬 표준 함수인 `open()`을 사용하고 있습니다.
    
        따라서 디스크에 데이터를 쓰기 위해 "대기"가 필요한 I/O (입력/출력) 작업을 수행합니다.
    
        그러나 `open()`은 `async`와 `await`을 사용하지 않기 때문에 이벤트 핸들러 함수는 `async def`가 아닌 표준 `def`로 선언하고 있습니다.
    
    !!! info "정보"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 22:35:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/events.md

    with open("file.txt") as file:
        file.read()
    ```
    
    Nas versões mais recentes de Python, há também um **gerenciador de contexto assíncrono**. Você o usaria com `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
    - 8.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/cache/internal/DefaultGeneratedGradleJarCacheIntegrationTest.groovy

                        Thread.sleep(JAR_GENERATION_TIME_MS)
                        touch(file)
                    }
                })
            }
    
            concurrent.start {
                startSecondInvocation.await()
                jarFile2 = defaultGeneratedGradleJarCache.get(CACHE_IDENTIFIER, new Action<File>() {
                    @Override
                    void execute(File file) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

                return getResponse(1, TimeUnit.MINUTES);
            }
    
            public RESPONSE getResponse(final long time, final TimeUnit unit) {
                try {
                    final boolean isTimeout = !latch.await(time, unit);
                    if (isTimeout) {
                        throw new SuggesterException("Request timeout. time:" + time + " unit:" + unit.name());
                    }
                    if (error != null) {
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

                                try {
                                    while (!removed && queue.isEmpty()) {
                                        try {
                                            condition.await();
                                        } catch (InterruptedException e) {
                                            throw UncheckedException.throwAsUncheckedException(e);
                                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/events.md

    with open("file.txt") as file:
        file.read()
    ```
    
    In neueren Versionen von Python gibt es auch einen **asynchronen Kontextmanager**. Sie würden ihn mit `async with` verwenden:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:30:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        public @Nullable Void call() throws InterruptedException {
          running = true;
          startLatch.countDown();
          stopLatch.await();
          running = false;
          return null;
        }
    
        public void waitForStart() throws InterruptedException {
          startLatch.await();
        }
    
        public void stop() {
          stopLatch.countDown();
        }
    
        public boolean isRunning() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/dataclasses.md

        🕧, FastAPI 👆 💪 🌀 `def` &amp; `async def` 💪.
    
        🚥 👆 💪 ↗️ 🔃 🕐❔ ⚙️ ❔, ✅ 👅 📄 _"🏃 ❓" _ 🩺 🔃 <a href="https://fastapi.tiangolo.com/async/#in-a-hurry" target="_blank" class="internal-link">`async` &amp; `await`</a>.
    
    9️⃣. 👉 *➡ 🛠️ 🔢* 🚫 🛬 🎻 (👐 ⚫️ 💪), ✋️ 📇 📖 ⏮️ 🔗 💽.
    
        FastAPI 🔜 ⚙️ `response_model` 🔢 (👈 🔌 🎻) 🗜 📨.
    
    👆 💪 🌀 `dataclasses` ⏮️ 🎏 🆎 ✍ 📚 🎏 🌀 📨 🏗 📊 📊.
    
    ✅-📟 ✍ 💁‍♂ 🔛 👀 🌅 🎯 ℹ.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/operations/BuildOperationExecutorIntegrationTest.groovy

                        buildOperationExecutor.runAll { queue ->
                            queue.add(new TestOperation(startedLatch))
                            queue.add(new TestOperation(startedLatch))
                            startedLatch.await()
                            throw new Exception("queue failure")
                        }
                    }
                }
    
                class TestOperation implements RunnableBuildOperation {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 12:12:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/main/java/org/gradle/workers/WorkerExecutor.java

         * tasks from the same project cannot be run in parallel while the task action is still executing.
         *
         * @throws WorkerExecutionException when a failure occurs while executing the work.
         */
        void await() throws WorkerExecutionException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top