gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
279 stars 112 forks source link

glib: Only implement Send on JoinHandle if the result is Send #1387

Closed felinira closed 4 months ago

felinira commented 5 months ago

Other runtimes need to do this too https://docs.rs/async-std/latest/async_std/task/struct.JoinHandle.html#impl-Send

felinira commented 5 months ago

This isn't actually enough, we should instead rely on the auto impl.

Added a safety comment as to why I think this should be fine now.