Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,132 for Await (0.07 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

            @Override
            public void run() {
            }
    
            public void await() {
                try {
                    latch.await();
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            public void completed() {
                latch.countDown();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/operations/MaxWorkersTest.groovy

                    }
                }
    
                leaseAcquiredLatch.await()
    
                // release the first queue to submit its work
                synchronized (release) {
                    release.notify()
                }
    
                // Wait for all worker leases to be utilized running work
                runningLatch.await()
                fullyUtilizedLatch.countDown()
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. docs/ko/docs/async.md

    # 동시성과 async / await
    
    *경로 작동 함수*에서의 `async def` 문법에 대한 세부사항과 비동기 코드, 동시성 및 병렬성에 대한 배경
    
    ## 바쁘신 경우
    
    <strong>요약</strong>
    
    다음과 같이 `await`를 사용해 호출하는 제3의 라이브러리를 사용하는 경우:
    
    ```Python
    results = await some_library()
    ```
    
    다음처럼 *경로 작동 함수*를 `async def`를 사용해 선언하십시오:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    !!! note "참고"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                            case Idle:
                            case Busy:
                                LOGGER.debug("daemon is running. Sleeping until state changes.");
                                condition.await();
                                break;
                            case Canceled:
                                LOGGER.debug("cancel requested.");
                                DaemonStopState state = cancelNow();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. platforms/extensibility/unit-test-fixtures/src/integTest/groovy/org/gradle/testfixtures/ProjectBuilderIntegrationTest.groovy

            def threads = 5
            def startSignal = new CountDownLatch(1)
            def doneSignal = new CountDownLatch(threads)
    
            when:
            threads.times {
                new Thread({
                    startSignal.await()
                    def spawnedProject = ProjectBuilder.builder().build()
                    try {
                        doneSignal.countDown()
                    } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/DefaultWorkerExecutor.java

                workItems.add(workerExecutor.submitWork(workActionClass, parameterAction, spec, workerFactory));
            }
    
            @Override
            public void await() throws WorkerExecutionException {
                workerExecutor.await(workItems);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:17:07 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/async-tests.md

    ```Python hl_lines="9-10"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    Das ist das Äquivalent zu:
    
    ```Python
    response = client.get('/')
    ```
    
    ... welches wir verwendet haben, um unsere Requests mit dem `TestClient` zu machen.
    
    !!! tip "Tipp"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:25:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/request-files.md

    * `read(size)`:按指定数量的字节或字符(`size` (`int`))读取文件内容;
    * `seek(offset)`:移动至文件 `offset` (`int`)字节处的位置;
        * 例如,`await myfile.seek(0) ` 移动到文件开头;
        * 执行 `await myfile.read()` 后,需再次读取已读取内容时,这种方法特别好用;
    * `close()`:关闭文件。
    
    因为上述方法都是 `async` 方法,要搭配「await」使用。
    
    例如,在 `async` *路径操作函数* 内,要用以下方式读取文件内容:
    
    ```Python
    contents = await myfile.read()
    ```
    
    在普通 `def` *路径操作函数*  内,则可以直接访问 `UploadFile.file`,例如:
    
    ```Python
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * Object x = new MyClass() {
     *   ...
     *   protected void finalize() { latch.countDown(); ... }
     * };
     * x = null;  // Hint to the JIT that x is stack-unreachable
     * GcFinalization.await(latch);
     * }</pre>
     *
     * <p>Here's an example that uses a user-defined finalization predicate:
     *
     * <pre>{@code
     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonStateCoordinatorTest.groovy

            coordinator.stop()
    
            then: "stops"
            stopped
    
            when: "requested again"
            coordinator.stop()
    
            then:
            stopped
            0 * _._
        }
    
        def "await idle timeout does nothing when already stopped"() {
            given:
            coordinator.stop()
    
            when:
            def result = coordinator.awaitStop()
    
            then:
            stopped
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top