Closed SergioBenitez closed 6 months ago
This is a huge whoopsie.
While I'm at it I also added type Type: Send
and type Error: Send
to it.
I just released deadpool
version 0.12.0
at crates.io with this fix:
All the other crates were released as well but with a change in the minor version number as this is is only a breaking change for the core deadpool crate.
Thanks a lot for reporting this! :thumbsup:
As in the title: in 0.11. The culprit is the
Manager
trait, which doesn't require theFuture
s returned by its methods as needing to beSend
. This infects every function that calls any of these methods andawait
s the returned future, making theFuture
returned by those functions!Send
. This makes using themanaged
part ofdeadpool
with a multithreaded runtime either impossible or extremely cumbersome/slow.It should suffice to add a
Send
bound to the returnimpl
in the methods: