Takes ownership of the current Thread
()
| 328 | |
| 329 | /// Takes ownership of the current Thread |
| 330 | pub fn take_current_thread() -> Option<Box<Thread>> { |
| 331 | CURRENT_THREAD.write().take() |
| 332 | } |
| 333 | |
| 334 | /// Makes the given thread the current thread |
| 335 | /// If another thread was running schedule it |
no test coverage detected