Future & Tasks

This lesson discusses futures and tasks that can get scheduled on the event loop.

Futures & Tasks

Future

Future represents a computation that is either in progress or will get scheduled in the future. It is a special low-level awaitable object that represents an eventual result of an asynchronous operation. Don't confuse threading.Future and asyncio.Future. The former is part of the threading module and doesn't have an ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.