Skip to content
This repository has been 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

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Feb 16, 2021

…Send+Sync+'static


It could've also been Unpin but because of the async block that's not possible anymore. Probably not much of a problem in practice. (CC @jplatte )

@sdroege sdroege merged commit e0bc298 into gtk-rs:master Feb 16, 2021
@sdroege sdroege deleted the send-sync-static-thread-pool branch February 16, 2021 10:03
@jplatte
Copy link
Contributor

jplatte commented Feb 16, 2021

That's unfortunate. I wonder whether there are any plans to make futures that don't borrow across .awaits Unpin (a cursory search returned nothing).

@sdroege
Copy link
Member Author

sdroege commented Feb 16, 2021

That's unfortunate. I wonder whether there are any plans to make futures that don't borrow across .awaits Unpin (a cursory search returned nothing).

Can you create an issue and link it here? I would've assumed that to be part of the plans :)

@jplatte
Copy link
Contributor

jplatte commented Feb 16, 2021

rust-lang/rust#82187

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants