文档里的示例代码
use futures::channel::mpsc;
use futures::executor; ///standard executors to provide a context for futures and streams
use futures::executor::ThreadPool;
use futures::StreamExt;
在自己跑的时候他就报错, 说executor里没有ThreadPool, 但是实际上他是有的啊
Ext Link: https://docs.rs/futures/0.3.5/futures/
1
共 1 条评论, 1 页
评论区
写评论dependencies: futures = { version = "0.3.5", features = ["thread-pool"] }