-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
util/io: Add SyncIoBridge
#4146
Merged
Merged
Commits on Oct 5, 2021
-
I'm doing quite a bit of stuff inside `spawn_blocking` because I need to use some large synchronous APIs. I found it not entirely obvious how to "bridge" the world of async I/O with sync I/O. Since we have a handy "tokio-util" module with an "io" feature, these small helpers seem like a good fit hopefully! Extracted these from my code in https://github.com/ostreedev/ostree-rs-ext/blob/main/lib/src/async_util.rs
Configuration menu - View commit details
-
Copy full SHA for 919d827 - Browse repository at this point
Copy the full SHA 919d827View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca04164 - Browse repository at this point
Copy the full SHA ca04164View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b35775 - Browse repository at this point
Copy the full SHA 0b35775View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d5c9c8 - Browse repository at this point
Copy the full SHA 2d5c9c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59a9566 - Browse repository at this point
Copy the full SHA 59a9566View commit details
Commits on Oct 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e6051a0 - Browse repository at this point
Copy the full SHA e6051a0View commit details
Commits on Oct 8, 2021
-
Update tokio-util/src/io/sync_bridge.rs
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
Configuration menu - View commit details
-
Copy full SHA for 29795db - Browse repository at this point
Copy the full SHA 29795dbView commit details
Commits on Oct 20, 2021
-
Have
io
depend ontokio/io-util
for SyncIoBridgeNecessary for the sync bridge work. I don't know whether this is OK.
Configuration menu - View commit details
-
Copy full SHA for 541011b - Browse repository at this point
Copy the full SHA 541011bView commit details
Commits on Oct 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2d8b60c - Browse repository at this point
Copy the full SHA 2d8b60cView commit details -
util: Create a new
io-util
feature that depends onrt
andio
Move sync-bridge to it.
Configuration menu - View commit details
-
Copy full SHA for e7bab76 - Browse repository at this point
Copy the full SHA e7bab76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a91e6d - Browse repository at this point
Copy the full SHA 0a91e6dView commit details -
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
Configuration menu - View commit details
-
Copy full SHA for 0584c03 - Browse repository at this point
Copy the full SHA 0584c03View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8956f3 - Browse repository at this point
Copy the full SHA b8956f3View commit details
Commits on Oct 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2725071 - Browse repository at this point
Copy the full SHA 2725071View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.