You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, now I get what you want. You just want a way to get a handle to the item downloaded by the store, that you can use either in sync land (Read/Seek) and in tokio flavoured async land (AsyncRead / AsyncSeek).
Yes, that is quite reasonable, and something we should definitely support. Unfortunately there are a lot of things in flux right now, so if we just hack it in we might lose a lot of work.
Currently Tokio's AsyncRead api is supported via the Reader struct
https://docs.rs/iroh-blobs/latest/iroh_blobs/rpc/client/blobs/struct.Reader.html
It would be useful for things like zip archive based blobs to be able to seek as well.
Possibly AsyncBufRead as well.
If there is a performance penalty, there could be different methods for returning
AsyncRead
andAsyncRead + AsyncSeek
The text was updated successfully, but these errors were encountered: