Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

glib: Correctly mark future returned by ThreadPool::push_future() as … #304

Merged
merged 1 commit into from
Feb 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glib/src/thread_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl ThreadPool {
pub fn push_future<T: Send + 'static, F: FnOnce() -> T + Send + 'static>(
&self,
func: F,
) -> Result<impl Future<Output = T>, crate::Error> {
) -> Result<impl Future<Output = T> + Send + Sync + 'static, crate::Error> {
let (sender, receiver) = oneshot::channel();

self.push(move || {
Expand Down