We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f179610 commit 7c7cd56Copy full SHA for 7c7cd56
src/executor/task.rs
@@ -25,11 +25,11 @@ impl AsyncTaskId {
25
26
pub(crate) struct AsyncTask {
27
id: AsyncTaskId,
28
- future: Pin<Box<dyn Future<Output = ()>>>,
+ future: Pin<Box<dyn Future<Output = ()> + Send>>,
29
}
30
31
impl AsyncTask {
32
- pub fn new(future: impl Future<Output = ()> + 'static) -> AsyncTask {
+ pub fn new(future: impl Future<Output = ()> + Send + 'static) -> AsyncTask {
33
AsyncTask {
34
id: AsyncTaskId::new(),
35
future: Box::pin(future),
0 commit comments