< 返回版块

Lincyaw 发表于 2020-08-13 16:51

Tags:Futures

文档里的示例代码

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/

评论区

写评论
fengzj 2020-08-13 23:06

dependencies: futures = { version = "0.3.5", features = ["thread-pool"] }

1 共 1 条评论, 1 页