opendal icon indicating copy to clipboard operation
opendal copied to clipboard

Tokio I/O impl for `FuturesAsyncRead`

Open sameer opened this issue 1 year ago • 1 comments

Hello,

In 0.46.0 onwards, the read traits were removed from Reader and pushed into methods like into_futures_async_read and read. However, support for the Tokio I/O traits was lost in the process.

Is there any interest in supporting these with feature gating? For now I've been using async-compat to work around this.

sameer avatar Jul 08 '24 21:07 sameer

There is a plan to implement into_tokio_async_read() -> TokioAsyncReader. However, I am not confident that adding a feature gate at the Reader level is a good idea.

Since there is a workaround for this, how about we leave this issue open to collect more feedback?

Xuanwo avatar Jul 09 '24 03:07 Xuanwo