Skip to content

Add IoUring::submit_all() #16

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

asayers
Copy link
Contributor

@asayers asayers commented Apr 24, 2025

Sometimes you have a bunch of SQEs you want to submit. They may or may not fit in the squeue, but either way you just want to keep submitting in a loop until all the SQEs are submitted.

This PR adds a submit_all() method which does this for you. It's named in analogy with std::io::Write::write_all(), which does something similar.


It's possibly more correct to check for and ignore ErrorKind::Interrupted when calling submit(). I haven't seen this error happen in practice so I'm not sure.

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

Successfully merging this pull request may close these issues.

1 participant