diff --git a/glib/src/thread_pool.rs b/glib/src/thread_pool.rs index a8839d7d72aa..2d2bba1d9f65 100644 --- a/glib/src/thread_pool.rs +++ b/glib/src/thread_pool.rs @@ -76,7 +76,7 @@ impl ThreadPool { pub fn push_future T + Send + 'static>( &self, func: F, - ) -> Result, crate::Error> { + ) -> Result + Send + Sync + 'static, crate::Error> { let (sender, receiver) = oneshot::channel(); self.push(move || {