Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 201 - 210 of 515 for _wait (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/ko/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` 이전의 코드가 실행되고, `with` 블록을 벗어난 후에는 `yield` 이후의 코드가 실행됩니다.
    
    위의 코드 예제에서는 직접 사용하지 않고, FastAPI에 전달하여 사용하도록 합니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

      override fun ensureLoaded() {
        if (!listRead.get() && listRead.compareAndSet(false, true)) {
          readTheListUninterruptibly()
        } else {
          try {
            readCompleteLatch.await()
          } catch (_: InterruptedException) {
            Thread.currentThread().interrupt() // Retain interrupted status.
          }
        }
    
        if (!::bytes.isInitialized) {
          // May have failed with an IOException
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. helm/minio/templates/_helper_create_policy.txt

    MC_CONFIG_DIR="{{ .Values.configPathmc }}"
    MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}"
    {{- else }}
    MC="/usr/bin/mc --insecure"
    {{- end }}
    
    # connectToMinio
    # Use a check-sleep-check loop to wait for MinIO service to be available
    connectToMinio() {
      SCHEME=$1
      ATTEMPTS=0 ; LIMIT=29 ; # Allow 30 attempts
      set -e ; # fail if we can't read the keys.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Mar 21 06:38:06 GMT 2023
    - 2K bytes
    - Click Count (0)
  4. 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()
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  5. docs/ru/docs/advanced/dataclasses.md

        Как и всегда в FastAPI, вы можете сочетать `def` и `async def` по необходимости.
    
        Если хотите освежить в памяти, когда что использовать, посмотрите раздел _"Нет времени?"_ в документации про [`async` и `await`](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    9. Эта *функция-обработчик пути* возвращает не dataclasses (хотя могла бы), а список словарей с внутренними данными.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        // (which will block) in the same thread.
        new Thread() {
          @Override
          public void run() {
            inputFuture.set(SLOW_FUNC_VALID_INPUT_DATA);
          }
        }.start();
        funcIsWaitingLatch.await();
    
        assertTrue(resultFuture.cancel(true));
        assertTrue(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
        assertFalse(outputFuture.isCancelled());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        // (which will block) in the same thread.
        new Thread() {
          @Override
          public void run() {
            inputFuture.set(SLOW_FUNC_VALID_INPUT_DATA);
          }
        }.start();
        funcIsWaitingLatch.await();
    
        assertTrue(resultFuture.cancel(true));
        assertTrue(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
        assertFalse(outputFuture.isCancelled());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/gcs/GcsClientTest.java

    import org.codelibs.fess.crawler.helper.impl.MimeTypeHelperImpl;
    import org.dbflute.utflute.core.PlainTestCase;
    import org.testcontainers.containers.GenericContainer;
    import org.testcontainers.containers.wait.strategy.Wait;
    
    import com.google.cloud.NoCredentials;
    import com.google.cloud.storage.BlobId;
    import com.google.cloud.storage.BlobInfo;
    import com.google.cloud.storage.BucketInfo;
    import com.google.cloud.storage.Storage;
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

          assertWithMessage("Loader should NOT have been called @#%s", i)
              .that(loader.wasCalled())
              .isFalse();
        }
    
        // wait for entries to expire, but don't call expireEntries
        ticker.advance(EXPIRING_TIME * 10, MILLISECONDS);
    
        // add a single unexpired entry
        cache.getUnchecked(KEY_PREFIX + 11);
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  10. internal/grid/debug.go

    			manager.debugMsg(debugShutdown)
    		}
    		for _, server := range t.Servers {
    			server.Close()
    		}
    		for _, listener := range t.Listeners {
    			listener.Close()
    		}
    	})
    }
    
    // WaitAllConnect will wait for all connections to be established.
    func (t *TestGrid) WaitAllConnect(ctx context.Context) {
    	for _, manager := range t.Managers {
    		for _, remote := range manager.Targets() {
    			if manager.HostName() == remote {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 4.4K bytes
    - Click Count (0)
Back to Top