Skip to content

Nitty fix: make tokio:sync:::RwLock::try_read return Err#252

Open
sarsko wants to merge 2 commits intomainfrom
rw-lock-try-read
Open

Nitty fix: make tokio:sync:::RwLock::try_read return Err#252
sarsko wants to merge 2 commits intomainfrom
rw-lock-try-read

Conversation

@sarsko
Copy link
Contributor

@sarsko sarsko commented Feb 17, 2026

Currently we silently give the task the lock. I think we'd rather return Err to encourage the task to shut down


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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