-
asyncify is a small tool one sometimes needs. I could just copypaste and implement it where needed, its just a few lines. But perhaps its a good choice to bless it as public interface (from runtime then?). Make the Result generic and done. Or did I overseen something that would make this infeasible? |
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
Apr 9, 2021
Replies: 1 comment
-
It's just a wrapper around |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cehteh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's just a wrapper around
tokio::task::spawn_blocking
that converts panics in the spawned task into an io error. Usespawn_blocking
instead.