https://opendal.apache.org/ logo
A new idea that removes the extra box of OperatorF...
# general
x
, Come up a new idea that removes the extra box of OperatorFuture
We can store the future in OperatorFuture directly instead of
Box<dyn Future>
.
And than, return
FutureStat<impl Future<Output = Result<Metadata>>>
instead
No need for
Box::pin()
now!
Drawback is users can't store
FutureStat
anymore unless they use
Box::pin()
And it's a breaking change.
5 Views