Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 980 for Await (0.04 sec)

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

                      startLatch.countDown();
                      startLatch.await();
                      callable.call();
                      doneLatch.countDown();
                      return null;
                    }
                  });
        }
        doneLatch.await();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 14:40:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

        final CountDownLatch latch = new CountDownLatch(2);
    
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      barrier.await();
                    } catch (Exception e) {
                      throw new AssertionError(e);
                    }
    
                    dispatcher.dispatch(2, integerSubscribers.iterator());
                    latch.countDown();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 27 15:41:25 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/RecordingCallback.kt

        (this as Object).notifyAll()
      }
    
      /**
       * Returns the recorded response triggered by `request`. Throws if the response isn't
       * enqueued before the timeout.
       */
      @Synchronized
      fun await(url: HttpUrl): RecordedResponse {
        val timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS
        while (true) {
          val i = responses.iterator()
          while (i.hasNext()) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/ConditionalExecution.java

         */
        Runnable getExecution();
    
        /**
         * Blocks waiting for this execution to complete. Returns a result provided by the execution.
         */
        T await();
    
        /**
         * This method will be called upon completion of the execution.
         */
        void complete();
    
        /**
         * Whether this execution has been completed or not.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. tests/test_dependency_contextvars.py

        legacy_request_state_context_var.reset(contextvar_token)
    
    
    @app.middleware("http")
    async def custom_middleware(
        request: Request, call_next: Callable[[Request], Awaitable[Response]]
    ):
        response = await call_next(request)
        response.headers["custom"] = "foo"
        return response
    
    
    @app.get("/user", dependencies=[Depends(set_up_request_state_dependency)])
    def get_user():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Feb 17 12:40:12 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/websockets.md

    ```
    
    !!! note "📡 ℹ"
        👆 đŸ’Ē ⚙ī¸ `from starlette.websockets import WebSocket`.
    
        **FastAPI** 🚚 🎏 `WebSocket` 🔗 đŸĒ 👆, 👩‍đŸ’ģ. ✋ī¸ âšĢī¸ 👟 🔗 âšĒī¸âžĄī¸ 💃.
    
    ## ⌛ 📧 & 📨 📧
    
    👆 *ī¸âƒŖ đŸ›Ŗ 👆 đŸ’Ē `await` 📧 & 📨 📧.
    
    ```Python hl_lines="48-52"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    👆 đŸ’Ē 📨 & 📨 💱, ✍, & đŸŽģ đŸ’Ŋ.
    
    ## 🔄 âšĢī¸
    
    đŸšĨ 👆 📁 📛 `main.py`, 🏃 👆 🈸 ⏎ī¸:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/process/internal/MessageProducingProcess.java

                    for (int i=0; i<1000; i++) {
                        System.out.println("message " + i + "...");
                    }
                }
            }).start();
            try {
                latch.await();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 05 18:05:20 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/deployment/internal/SimpleBlockingDeployment.java

            this.delegate = delegate;
        }
    
        @Override
        public Status status() {
            lock.lock();
            try {
                while (outOfDate) {
                    try {
                        upToDate.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                return delegate.status();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 23 18:00:07 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/request-files.md

    * `seek(offset)`: 파ėŧ 내 `offset`(`int`) ėœ„ėš˜ė˜ 바ė´íŠ¸ëĄœ ė´ë™í•Šë‹ˆë‹¤.
        * ė˜ˆ) `await myfile.seek(0)` ëĨŧ ė‚ŦėšŠí•˜ëŠ´ 파ėŧė˜ ė‹œėž‘ëļ€ëļ„ėœŧ로 ė´ë™í•Šë‹ˆë‹¤.
        * `await myfile.read()` ëĨŧ ė‚ŦėšŠí•œ 후 내ėšŠė„ 다ė‹œ ėŊė„ 때 ėœ ėšŠí•Šë‹ˆë‹¤.
    * `close()`: 파ėŧė„ ë‹ĢėŠĩ니다.
    
    ėƒę¸° ëĒ¨ë“  메ė†Œë“œë“¤ė´ `async` 메ė†Œë“œė´ę¸° 때ëŦ¸ė— “await”ė„ ė‚ŦėšŠí•˜ė—Ŧė•ŧ 합니다.
    
    ė˜ˆëĨŧ들ė–´, `async` *ę˛Ŋ로 ėž‘동 함ėˆ˜*ė˜ 내ëļ€ė—ė„œ 다ėŒęŗŧ 같ė€ ë°Šė‹ėœŧ로 내ėšŠė„ 가ė ¸ė˜Ŧ ėˆ˜ ėžˆėŠĩ니다:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/build-operations/src/test/groovy/org/gradle/internal/operations/CurrentBuildOperationRefTest.groovy

                // when:
                ref.clear()
    
                // then:
                conditions.evaluate { ref.get() == null }
            }
    
            then:
            conditions.await()
    
            cleanup:
            thread?.join(1000)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 14:19:43 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top