Error: unresolved import `futures::executor::ThreadPool`

Why the following code is getting that build error? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d4342a7fb2b45f966b97afc2bc6494d7

Thanks in advance :slight_smile:

Because futures::executor::ThreadPool (see last paragraph) is available only with the thread-pool feature enabled, which is disabled by default

1 Like

Thanks :slight_smile: