-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
sync confusingly defines 3 types called Mutex
#14530
Comments
The |
@alexcrichton the current convention seems to be that types should be referenced without their module, so you'd actually want |
It might also be worth exploring renaming |
Oh, and there's the |
cc me. |
Addressed with |
There's
sync::Mutex<T>
,sync::raw::Mutex
andsync::mutex::Mutex
. The latter two have similar signatures (no contained data) and similar but slightly different APIs. The docs don't describe the difference in detail.This is pretty confusing (renaming and/or documenting better would be a good fix).
cc @alexcrichton
The text was updated successfully, but these errors were encountered: