What is Future async?

When an async function is called, a Future is immediately returned and the body of the function is executed later . As the body of the async function is executed, the Future returned by the function call will be completed along with its result. In the above example, calling demo() results in the Future.

Sizin İçin Seçtik  What is constructor in Python with example?

Leave a Reply

Your email address will not be published. Required fields are marked *