Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 236 for Retry (0.04 seconds)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.kotlin-dsl-gradle-plugin.gradle.kts

        id("java-library")
        id("org.gradle.kotlin.kotlin-dsl") // this is 'kotlin-dsl' without version
        id("gradlebuild.code-quality")
        id("gradlebuild.detekt")
        id("gradlebuild.ci-reporting")
        id("gradlebuild.test-retry")
        id("gradlebuild.private-javadoc")
    }
    
    val testLibs = project.versionCatalogs.named("testLibs")
    
    dependencies {
        api(platform("gradlebuild:build-platform"))
        implementation("gradlebuild:gradle-plugin")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  2. docs/recipes.md

        ```kotlin
        if (credential == response.request.header("Authorization")) {
          return null // If we already failed with these credentials, don't retry.
         }
        ```
    
        You may also skip the retry when you’ve hit an application-defined attempt limit:
    
        ```kotlin
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  3. fastapi/.agents/skills/fastapi/references/streaming.md

    async def stream_items() -> AsyncIterable[Item]:
        yield Item(name="Plumbus", price=32.99)
        yield Item(name="Portal Gun", price=999.99)
    ```
    
    For full control over SSE fields (`event`, `id`, `retry`, `comment`), yield `ServerSentEvent` instances:
    
    ```python
    from collections.abc import AsyncIterable
    
    from fastapi import FastAPI
    from fastapi.sse import EventSourceResponse, ServerSentEvent
    
    app = FastAPI()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/server-sent-events.md

    /// info
    
    在 FastAPI 0.135.0 新增。
    
    ///
    
    ## 什麼是 Server-Sent Events? { #what-are-server-sent-events }
    
    SSE 是一種透過 HTTP 從伺服器向用戶端串流傳送資料的標準。
    
    每個事件都是一個小型文字區塊,包含 `data`、`event`、`id` 和 `retry` 等「欄位」,並以空白行分隔。
    
    看起來像這樣:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    SSE 常用於 AI 聊天串流、即時通知、日誌與可觀察性,以及其他由伺服器主動推送更新給用戶端的情境。
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/RateLimitHelper.java

                return false;
            }
    
            return true;
        }
    
        /**
         * Get the Retry-After header value in seconds.
         * @return the retry after seconds
         */
        public int getRetryAfterSeconds() {
            return ComponentUtil.getFessConfig().getRateLimitRetryAfterSecondsAsInteger();
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/server-sent-events.md

    /// info | 信息
    
    新增于 FastAPI 0.135.0。
    
    ///
    
    ## 什么是服务器发送事件? { #what-are-server-sent-events }
    
    SSE 是一种通过 HTTP 从服务器向客户端流式传输数据的标准。
    
    每个事件是一个带有 `data`、`event`、`id` 和 `retry` 等“字段”的小文本块,以空行分隔。
    
    看起来像这样:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    SSE 常用于 AI 聊天流式输出、实时通知、日志与可观测性,以及其他服务器向客户端推送更新的场景。
    
    /// tip | 提示
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  7. docs/features/interceptors.md

    Interceptors
    ============
    
    Interceptors are a powerful mechanism that can monitor, rewrite, and retry calls. Here's a simple interceptor that logs the outgoing request and the incoming response.
    
    ```java
    class LoggingInterceptor implements Interceptor {
      @Override public Response intercept(Interceptor.Chain chain) throws IOException {
        Request request = chain.request();
    
        long t1 = System.nanoTime();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/Striped64.java

      /**
       * Handles cases of updates involving initialization, resizing, creating new Cells, and/or
       * contention. See above for explanation. This method suffers the usual non-modularity problems of
       * optimistic retry code, relying on rechecked sets of reads.
       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/server-sent-events.md

    /// info | 情報
    
    FastAPI 0.135.0 で追加されました。
    
    ///
    
    ## Server-Sent Events とは { #what-are-server-sent-events }
    
    SSE は、HTTP 経由でサーバーからクライアントへデータをストリーミングするための標準です。
    
    各イベントは、`data`、`event`、`id`、`retry` などの「フィールド」を含む小さなテキストブロックで、空行で区切られます。
    
    次のようになります:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  10. internal/logger/target/http/http.go

    				fmt.Errorf("unable to send audit/log entry(s) to '%s' err '%w': %d", name, err, count),
    				name,
    			)
    
    			time.Sleep(retryIntvl)
    			if maxRetries == 0 {
    				goto retry
    			}
    			retries++
    			if retries <= maxRetries {
    				goto retry
    			}
    		}
    
    		entries = make([]any, 0)
    		count = 0
    		if !isDirQueue {
    			buf.Reset()
    		}
    
    		if !mainWorker && len(h.logCh) < cap(h.logCh)/2 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15.6K bytes
    - Click Count (0)
Back to Top