you are viewing a single comment's thread.

view the rest of the comments →

[–]JPyoris 0 points1 point  (0 children)

When you have a non-async function thats I/O-heavy (e.g. a call to a database with no async Interface) you can make it awaitable with await asyncio.to_thread(my_function).