O'Reilly logo
  • Ivan Zderadicka thinks this is interesting:

thread::sleep(Duration::from_secs(d));

From

Cover of Network Programming with Rust

Note

I think this is not good example - whole trick in Future is to use Pending when future cannot be resolved immediately. Here poll will block and this blocks whole event loop.