Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 641 - 650 of 795 for asyncId (0.07 seconds)

  1. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_DeleteFunction(fn);
    
      for (bool async : {false, true, false}) {
        TFE_Executor* old_executor = TFE_ContextGetExecutorForThread(ctx);
        TFE_Executor* executor = TFE_NewExecutor(
            /*is_async=*/async, /*enable_streaming_enqueue=*/true,
            /*in_flight_nodes_limit=*/0);
        TFE_ContextSetExecutorForThread(ctx, executor);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  2. tests/test_regex_deprecated_body.py

    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
                if q:
                    return f"Hello {q}"
                else:
                    return "Hello World"
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  3. docs/tr/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *}
    
    Response'dan sonra `yield` satırını takip eden kod çalıştırılır:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *}
    
    /// tip | İpucu
    
    `async` ya da normal fonksiyonlar kullanabilirsiniz.
    
    **FastAPI**, normal dependency'lerde olduğu gibi her ikisinde de doğru şekilde davranır.
    
    ///
    
    ## `yield` ve `try` ile Bir Dependency { #a-dependency-with-yield-and-try }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  4. docs/pt/docs/deployment/manually.md

    /// tip | Dica
    
    Adicionando o `standard`, o Uvicorn instalará e usará algumas dependências extras recomendadas.
    
    Isso inclui o `uvloop`, a substituição de alto desempenho para `asyncio`, que fornece um grande aumento de desempenho de concorrência.
    
    Quando você instala o FastAPI com algo como `pip install "fastapi[standard]"`, você já obtém `uvicorn[standard]` também.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/first-steps.md

    Dans ce cas, c’est une fonction `async`.
    
    ---
    
    Vous pouvez aussi la définir comme une fonction normale au lieu de `async def` :
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note | Remarque
    
    Si vous ne connaissez pas la différence, consultez [Asynchrone : « Pressé ? »](../async.md#in-a-hurry).
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  6. fastapi/dependencies/utils.py

            assert field_info_in == params.ParamTypes.cookie, (
                f"non-body parameters must be in path, query, header or cookie: {field.name}"
            )
            dependant.cookie_params.append(field)
    
    
    async def _solve_generator(
        *, dependant: Dependant, stack: AsyncExitStack, sub_values: dict[str, Any]
    ) -> Any:
        assert dependant.call
        if dependant.is_async_gen_callable:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  7. docs/zh/docs/alternatives.md

    使用 Python 类型以获得出色的编辑器支持。
    
    拥有强大的依赖注入系统,并设法尽量减少代码重复。
    
    ///
    
    ### [Sanic](https://sanic.readthedocs.io/en/latest/) { #sanic }
    
    它是最早的一批基于 `asyncio` 的极速 Python 框架之一,且做得与 Flask 很相似。
    
    /// note | 技术细节
    
    它使用了 [`uvloop`](https://github.com/MagicStack/uvloop) 来替代 Python 默认的 `asyncio` 循环。这正是它如此之快的原因。
    
    它显然启发了 Uvicorn 和 Starlette;在公开的基准测试中,它们目前比 Sanic 更快。
    
    ///
    
    /// check | 启发 **FastAPI**:
    
    找到实现疯狂性能的路径。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/first-steps.md

    У цьому випадку це `async` функція.
    
    ---
    
    Ви також можете визначити її як звичайну функцію замість `async def`:
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note
    
    Якщо ви не знаєте різницю, подивіться [Асинхронність: *«Поспішаєте?»*](../async.md#in-a-hurry).
    
    ///
    
    ### Крок 5: поверніть вміст { #step-5-return-the-content }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  9. internal/http/server.go

    	// Take a copy of server fields.
    	var tlsConfig *tls.Config
    	if srv.TLSConfig != nil {
    		tlsConfig = srv.TLSConfig.Clone()
    	}
    	handler := srv.Handler // if srv.Handler holds non-synced state -> possible data race
    
    	// Create new HTTP listener.
    	var listener *httpListener
    	listener, listenErrs := newHTTPListener(
    		listenCtx,
    		srv.Addrs,
    		srv.TCPOptions,
    	)
    
    	var interfaceFound bool
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  10. tests/test_no_schema_split.py

    
    class Message(BaseModel):
        input: str
        output: MessageOutput
    
    
    app = FastAPI(title="Minimal FastAPI App", version="1.0.0")
    
    
    @app.post("/messages", response_model=Message)
    async def create_message(input_message: str) -> Message:
        return Message(
            input=input_message,
            output=MessageOutput(body=f"Processed: {input_message}"),
        )
    
    
    client = TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top