Don't claim LocalKey::with prevents a reference to be sent across threads
This commit is contained in:
parent
da14081468
commit
2563fbeab3
@ -18,8 +18,8 @@
|
||||
/// target platform. It is instantiated with the [`thread_local!`] macro and the
|
||||
/// primary method is the [`with`] method.
|
||||
///
|
||||
/// The [`with`] method yields a reference to the contained value which cannot be
|
||||
/// sent across threads or escape the given closure.
|
||||
/// The [`with`] method yields a reference to the contained value which cannot
|
||||
/// outlive the current thread or escape the given closure.
|
||||
///
|
||||
/// [`thread_local!`]: crate::thread_local
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user