https://opendal.apache.org/ logo
ideas: Merge `range_read` into `read` 路 ...
# general
o
https://github.com/apache/incubator-opendal/issues/2811 This idea want to merge range_read into read, But blocking operator do not have read_with API, Is this idea not target for blocking operator? If we do this change for async operator, It can break operator and blocking_operator semantic inconsistency.
x
We need to add read_with for blocking operator.
o
Sorry, I do not know how to impl chain based blocking operator api, It seems blocking operator can not do lazy await like async impl.馃ぃ
read_with(path).range(range).await
all function will lazy loading by await call by async runtime, but in blocking mode, we call
read_with(path).range()
can not be loaded in dynamic. we need
read_with(path).range().collect()
like this if we want to impl this.
x
Users can use our builder alike API this way:
op.list_with("prefix/").delimiter("").call()?;
o
Thanks @Xuanwo explain it, i have been understood it