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

Switch to parking_lot or tokio mutex #299

Open
appaquet opened this issue Jun 20, 2020 · 0 comments
Open

Switch to parking_lot or tokio mutex #299

appaquet opened this issue Jun 20, 2020 · 0 comments

Comments

@appaquet
Copy link
Owner

When we don't need async, switch to parking_lot's primitives as they don't need to be unwrapped since they panic on poising instead. parking_lot's RWLock also allows upgrading a read lock to write.

When we need async, we should use Tokio's primitives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant