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

Why the following code is getting that build error? Rust Playground

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

2 Likes

Thanks :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.