Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for thread_pool (0.36 sec)

  1. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

        // Fesen Client
        //
    
        /**
         * Gets the thread pool used by the client.
         *
         * @return the thread pool
         */
        @Override
        public ThreadPool threadPool() {
            return client.threadPool();
        }
    
        /**
         * Gets the admin client for cluster and index administration.
         *
         * @return the admin client
         */
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 121.9K bytes
    - Viewed (0)
  2. docs/ru/docs/async.md

    ///
    
    ### Функции обработки пути
    
    Когда вы объявляете *функцию обработки пути* обычным образом с ключевым словом `def`
    вместо `async def`, FastAPI ожидает её выполнения, запустив функцию во внешнем
    <abbr title="threadpool">пуле потоков</abbr>, а не напрямую (это бы заблокировало сервер).
    
    Если ранее вы использовали другой асинхронный фреймворк, который работает иначе,
    и привыкли объявлять простые вычислительные *функции* через `def` ради
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     *
     * {@snippet :
     * ListenableFuture<Boolean> adminIsLoggedIn =
     *     FluentFuture.from(usersDatabase.getAdminUser())
     *         .transform(User::getId, directExecutor())
     *         .transform(ActivityService::isLoggedIn, threadPool)
     *         .catching(RpcException.class, e -> false, directExecutor());
     * }
     *
     * <h3>Alternatives</h3>
     *
     * <h4>Frameworks</h4>
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  4. docs/zh-hant/docs/async.md

    你大概可以跳過這段。
    
    這裡是有關 FastAPI 內部技術細節。
    
    如果你有相當多的技術背景(例如協程、執行緒、阻塞等),並且對 FastAPI 如何處理 `async def` 與常規 `def` 感到好奇,請繼續閱讀。
    
    ///
    
    ### 路徑操作函数
    
    當你使用 `def` 而不是 `async def` 宣告*路徑操作函式*時,該函式會在外部的執行緒池(threadpool)中執行,然後等待結果,而不是直接呼叫(因為這樣會阻塞伺服器)。
    
    如果你來自於其他不以這種方式運作的非同步框架,而且你習慣於使用普通的 `def` 定義僅進行簡單計算的*路徑操作函式*,目的是獲得微小的性能增益(大約 100 奈秒),請注意,在 FastAPI 中,效果會完全相反。在這些情況下,最好使用 `async def`除非你的*路徑操作函式*執行阻塞的 <abbr title="輸入/輸出:磁碟讀寫或網路通訊">I/O</abbr> 的程式碼。
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

        * This allows adding extra code after a dependency is done. It can be used, for example, to close database connections.
        * Dependencies with `yield` can be normal or `async`, **FastAPI** will run normal dependencies in a threadpool.
        * They can be combined with normal dependencies.
        * It's possible to have arbitrary trees/levels of dependencies with `yield` and exit steps are handled in the correct order automatically.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top