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.
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 forread
. Also, we can addwrite_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 canBox::pin()
it and join them while needed.