Skip to content

Conversation

james7132
Copy link
Contributor

@james7132 james7132 commented Aug 24, 2025

This crate has a number of unwraps and asserts that could be avoided and result in a bit of extra, potentially unnecessary, codegen, and its use of a std RwLock/Mutex does result in unnecessary blocking.

This PR converts any explicitly done (read: non-allocator) panics into handled errors, as well as moves stealing to not block when it cannot obtain a read lock on the queues.

Co-authored-by: Taiki Endo <[email protected]>
@james7132 james7132 merged commit 08c3fc4 into smol-rs:master Aug 24, 2025
8 checks passed
@notgull notgull mentioned this pull request Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants