Closed jameshi16 closed 3 weeks ago
In the current implementation, Handle is not sendable. The following code hence will not compile:
Handle
struct SimpleStructure; fn quick_test() -> impl Future<Output = ()> + Send { async move { Client::new(SimpleStructure, Box::new(|_, _, _, _| async move {})).await; } }
This PR makes Handler sendable.
Handler
Looks good to me, thanks!
The latest version (containing this commit) has just been published
In the current implementation,
Handle
is not sendable. The following code hence will not compile:This PR makes
Handler
sendable.