Kriskras99 commented on issue #136:
URL: https://github.com/apache/avro-rs/issues/136#issuecomment-3084930421

   > 
   > > File IO is not async anyway.
   > > Computation should be sync too.
   > 
   > This is not accurate. Tokio provides asynchronous file utilities via 
[`tokio::fs`](https://docs.rs/tokio/latest/tokio/fs/index.html). For example, 
[`tokio::fs::File`](https://docs.rs/tokio/latest/tokio/fs/struct.File.html) is 
`AsyncRead`.
   
   It is accurate, under the hood Tokio spawns a "blocking" thread which reads 
the file using std::io and then pushes it to the async runtime
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to