opendal icon indicating copy to clipboard operation
opendal copied to clipboard

idea: Move Concurrent logic out at `Writer` level and adding `write_can_concurrent`

Open Xuanwo opened this issue 1 year ago • 1 comments

We are now repeating concurrent related logic many times. I feel like it's time for us to research how to move concurrent logic out as Writer level as we do for read. Also, we can add write_can_concurrent capability to make sure users can know if a service support concurrent write or not.

One possible idea is making oio::Write::write() returns a 'static future so users can Box::pin() it and join them while needed.

Xuanwo avatar Jun 25 '24 17:06 Xuanwo

This will be a breaking change. And I will propose an RFC after I figured out most details.

Xuanwo avatar Jul 01 '24 09:07 Xuanwo

I tried, but failed. This is not a good idea.

Xuanwo avatar Aug 01 '24 07:08 Xuanwo