Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for meanwhile (0.05 sec)

  1. docs/en/docs/async.md

    The key here is the `await`. It tells Python that it has to wait ⏸ for `get_burgers(2)` to finish doing its thing 🕙 before storing the results in `burgers`. With that, Python will know that it can go and do something else 🔀 ⏯ in the meanwhile (like receiving another request).
    
    For `await` to work, it has to be inside a function that supports this asynchronicity. To do that, you just declare it with `async def`:
    
    ```Python hl_lines="1"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 23:33:37 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top