rustasync / runtime

Empowering everyone to build asynchronous software
https://docs.rs/runtime
Apache License 2.0
862 stars 28 forks source link

impl Sync for UdpSocket #62

Closed xofyarg closed 5 years ago

xofyarg commented 5 years ago

UdpSocket doesn't implement Sync, which makes it hard to build a server that potentially share the socket between futures/threads.

yoshuawuyts commented 5 years ago

@xofyarg this seems like a reasonable request, and agree we should add a Sync bound to UdpSocket! Would you be interested in filing a patch for that? The relevant code is here.