Fix tracking issue.
This commit is contained in:
@@ -83,7 +83,7 @@ struct SpawnHook {
|
|||||||
/// assert_eq!(X.get(), 123);
|
/// assert_eq!(X.get(), 123);
|
||||||
/// }).join().unwrap();
|
/// }).join().unwrap();
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "thread_spawn_hook", issue = "none")]
|
#[unstable(feature = "thread_spawn_hook", issue = "132951")]
|
||||||
pub fn add_spawn_hook<F, G>(hook: F)
|
pub fn add_spawn_hook<F, G>(hook: F)
|
||||||
where
|
where
|
||||||
F: 'static + Send + Sync + Fn(&Thread) -> G,
|
F: 'static + Send + Sync + Fn(&Thread) -> G,
|
||||||
|
|||||||
Reference in New Issue
Block a user