在Rust中,标准库中包含的
事实上, Rust's own documentation大多数情况下只使用
thread::JoinHandle<T>
类型具有类型参数T
。但是,似乎并没有为任何内容设置或使用T
。事实上, Rust's own documentation大多数情况下只使用
thread::JoinHandle<_>
,每当它需要将JoinHandle<T>
分配给某些东西时。那么这个T
到底是做什么用的呢?
pub fn join(self) -> Result<T>
使用了什么? - Shepmaster