Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 498 for bgwait (0.32 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

                import java.util.concurrent.TimeUnit;
    
                public class Block {
                    public static void main(String[] args) throws InterruptedException {
                        new CountDownLatch(1).await(90, TimeUnit.SECONDS);
                    }
                }
            """
            buildFile << """
                apply plugin: 'java'
                task block(type: JavaExec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //      */
      //     public void await(AtomicBoolean flag) {
      //         await(flag, LONG_DELAY_MS);
      //     }
    
      //     /**
      //      * Spin-waits up to the specified timeout until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag, long timeoutMillis) {
      //         long startTime = System.nanoTime();
      //         while (!flag.get()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

                                client.inputStream.skip(client.inputStream.available())
                            }
                            client.shutdownOutput()
                            latch.await() // wait for the end of the test before closing the connection
                            println("Closing client ${client.remoteSocketAddress}")
                        }
                    } catch (SocketException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                  }
                })
            .start();
    
        // wait for the computingEntry to be created
        computationStarted.await();
        cache.invalidateAll();
        // let the computation proceed
        computingLatch.countDown();
        // don't check cache.size() until we know the get("b") call is complete
        computationComplete.await();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 03 20:10:02 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelIntegrationTest.groovy

                        submitWorkItem("workItem1")
                        submitWorkItem("workItem2")
    
                        if (${waitForResults}) {
                            workerExecutor.await()
                        }
                    }
                }
            """
            blockingHttpServer.expectConcurrent("workItem0", "workItem1", "workItem2")
    
            expect:
            args("--max-workers=3")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

              call: Call,
              inetSocketAddress: InetSocketAddress,
              proxy: Proxy,
            ) {
              try {
                // Wait for request2 to guarantee we make 2 separate connections to the server.
                latch1.await()
              } catch (e: InterruptedException) {
                throw AssertionError(e)
              }
            }
    
            override fun connectionAcquired(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerRegistrySpec.groovy

                            }
                        }
                    }
                }
            }
            when:
            latch.await(5, TimeUnit.SECONDS)
            10_000.times {
                defaultSerializerRegistry.build(SerializableParent)
            }
            then:
            noExceptionThrown()
            conditions.await(5.0)
            where:
            // Rerun this test 10 times
            testIteration << (0..9)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. 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)
  10. docs/ru/docs/async.md

    ```Python
    results = await some_library()
    ```
    
    В этом случае *функции обработки пути* необходимо объявлять с использованием синтаксиса `async def`:
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    !!! note
        `await` можно использовать только внутри функций, объявленных с использованием `async def`.
    
    ---
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 39.9K bytes
    - Viewed (0)
Back to top