Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xuanwo opened this issue Jun 25, 2024 · 1 comment

Comments

@Xuanwo
Copy link
Member

Xuanwo commented Jun 25, 2024

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
Copy link
Member Author

Xuanwo commented Jul 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant