Syncio: asyncio, without await
asyncio can look very intimidating to newcomers, because of the async/await syntax. Evenexperienced programmers can get caught in the “async hell”, when awaiting a single async functionpropagates to the entire code base. Sometimes you wish you could call an async function justlike a regular function, whether running in an event loop or not. syncio is an attempt to make both worlds, asynchronous and synchronous, play better together.By decorating a function, be it async or not, with @sync, you don’t have […]
Read more