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

rt: switch enter to an RAII guard #2954

Merged
merged 4 commits into from Oct 13, 2020
Merged

rt: switch enter to an RAII guard #2954

merged 4 commits into from Oct 13, 2020

Conversation

carllerche
Copy link
Member

A RAII guard pattern is more flexible than taking a closure.

A RAII guard pattern is more flexible than taking a closure.
@carllerche carllerche added A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Oct 13, 2020
@carllerche carllerche added this to the v0.3 milestone Oct 13, 2020
@carllerche carllerche merged commit 00b6127 into master Oct 13, 2020
@carllerche carllerche deleted the rt-enter-guard branch October 13, 2020 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants