Breadcrumbs Collector

Acquiring knowledge one crumb at a time



What is asyncio’s ensure_future?

tl;dr ensure_future let’s us execute a coroutine in the background, without explicitly waiting for it to finish. If we need, we can wait for it later or poll for result. In other words, this is a way of executing code in asyncio without await.

© 2020 Breadcrumbs Collector — Powered by WordPress

Theme by Anders NorenUp ↑