Comprehensive Rust | Final Day
Rust鈥檚 async story is based on future's. A future is polled to produce a value. If the value is not ready yet, poll returns Poll::Pending and the executor will schedule the task to be polled again in the future. If the value is ready, poll returns Poll::Ready(value).