-
Hi all, |
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
Apr 24, 2021
Replies: 1 comment
-
You do not necessarily need to implement it with a custom
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alishir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You do not necessarily need to implement it with a custom
Future
likeio::copy
does, but it is certainly an option. Some other options are:io::copy
like utility could also be written with async/await syntax using a loop ortokio::select!
.AsyncRead
wrapper that performs the conversion and use it with the ordinaryio::copy
.