Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for blocking (0.2 sec)

  1. fastapi/concurrency.py

    )
    
    _T = TypeVar("_T")
    
    
    @asynccontextmanager
    async def contextmanager_in_threadpool(
        cm: ContextManager[_T],
    ) -> AsyncGenerator[_T, None]:
        # blocking __exit__ from running waiting on a free thread
        # can create race conditions/deadlocks if the context manager itself
        # has its own internal pool (e.g. a database connection pool)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Dec 25 17:57:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. fastapi/datastructures.py

        Define it as a *path operation function* (or dependency) parameter.
    
        If you are using a regular `def` function, you can use the `upload_file.file`
        attribute to access the raw standard Python file (blocking, not async), useful and
        needed for non-async code.
    
        Read more about it in the
        [FastAPI docs for Request Files](https://fastapi.tiangolo.com/tutorial/request-files/).
    
        ## Example
    
        ```python
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/pt/docs/async.md

    !!! warning
        Você pode provavelmente pular isso.
    
        Esses são detalhes muito técnicos de como **FastAPI** funciona por baixo do capô.
    
        Se você tem algum conhecimento técnico (corrotinas, threads, blocking etc) e está curioso sobre como o FastAPI controla o `async def` vs normal `def`, vá em frente.
    
    ### Funções de operação de rota
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/sql-databases-peewee.md

    It is connecting to the database and storing the connection data in an internal variable that is independent for each request (using the `contextvars` tricks from above).
    
    Because the database connection is potentially I/O blocking, this dependency is created with a normal `def` function.
    
    And then, in each *path operation function* that needs to access the database we add it as a dependency.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. docs/en/docs/async.md

    !!! warning
        You can probably skip this.
    
        These are very technical details of how **FastAPI** works underneath.
    
        If you have quite some technical knowledge (coroutines, threads, blocking, etc.) and are curious about how FastAPI handles `async def` vs normal `def`, go ahead.
    
    ### Path operation functions
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  6. docs/pl/docs/index.md

    ---
    
    "_If you're looking to learn one **modern framework** for building REST APIs, check out **FastAPI** [...] It's fast, easy to use and easy to learn [...]_"
    
    "_We've switched over to **FastAPI** for our **APIs** [...] I think you'll like it [...]_"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. docs/en/docs/alternatives.md

    ### <a href="https://github.com/encode/apistar" class="external-link" target="_blank">APIStar</a> (<= 0.5)
    
    Right before deciding to build **FastAPI** I found **APIStar** server. It had almost everything I was looking for and had a great design.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  8. docs/it/docs/index.md

    ---
    
    "_If you're looking to learn one **modern framework** for building REST APIs, check out **FastAPI** [...] It's fast, easy to use and easy to learn [...]_"
    
    "_We've switched over to **FastAPI** for our **APIs** [...] I think you'll like it [...]_"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. docs/tr/docs/async.md

    !!! warning
        Muhtemelen burayı atlayabilirsiniz.
    
        Bunlar, **FastAPI**'nin altta nasıl çalıştığına dair çok teknik ayrıntılardır.
    
        Biraz teknik bilginiz varsa (co-routines, threads, blocking, vb)ve FastAPI'nin "async def" ile normal "def" arasındaki farkı nasıl işlediğini merak ediyorsanız, devam edin.
    
    ### Path fonksiyonu
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  10. docs/de/docs/async.md

        Dies sind sehr technische Details darüber, wie **FastAPI** unter der Haube funktioniert.
    
        Wenn Sie über gute technische Kenntnisse verfügen (Coroutinen, Threads, Blocking, usw.) und neugierig sind, wie FastAPI mit `async def`s im Vergleich zu normalen `def`s umgeht, fahren Sie fort.
    
    ### Pfadoperation-Funktionen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:16 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top