Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for meanwhile (0.25 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"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top