summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/mod.rs
diff options
context:
space:
mode:
authorAlice Ryhl <alice@ryhl.io>2020-11-03 00:30:07 +0100
committerGitHub <noreply@github.com>2020-11-02 15:30:07 -0800
commit20a2b9e26316e704d16c62a28dfb74a505b92b25 (patch)
treee079440872af05deb22716e221aca85b4be3f8b6 /tokio/src/runtime/mod.rs
parentae4e8d7ad1afbfb1a5e8a60a307a7981b6f508dc (diff)
rt: add missing Send bound (#3089)
Diffstat (limited to 'tokio/src/runtime/mod.rs')
-rw-r--r--tokio/src/runtime/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs
index c76f5cf6..f85344db 100644
--- a/tokio/src/runtime/mod.rs
+++ b/tokio/src/runtime/mod.rs
@@ -392,6 +392,7 @@ cfg_rt! {
pub fn spawn_blocking<F, R>(&self, func: F) -> JoinHandle<R>
where
F: FnOnce() -> R + Send + 'static,
+ R: Send + 'static,
{
self.handle.spawn_blocking(func)
}