-
Notifications
You must be signed in to change notification settings - Fork 49
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
How about change async client mutex from std::sync::mutex to tokio::sync::mutex? #251
Comments
In what case does tokio Mutex need to be used? |
while async |
|
If I misunderstand . The tokio.sync:mutex may be greater for IO intensive ? Note that, although the compiler will not prevent the std Mutex from holding its guard across .await points in situations where the task is not movable between threads, this virtually never leads to correct concurrent code in practice as it can easily lead to deadlocks.` I just think the in the async status ,the tokio::sync::mutex may be greater? |
That's just my opinion may not correct . |
Which feature do you think can be improved?
streams need aync lock write,so use tokio to decide the schedule.
How can it be improved?
tokio::sync::mutex
Additional Information
..
Before raising this feature request
..
The text was updated successfully, but these errors were encountered: