(&'static self, func: F)
| 402 | control, |
| 403 | }); |
| 404 | } |
| 405 | |
| 406 | managed_workers.len() |
| 407 | } |
| 408 | // The size decreased |
| 409 | cmp::Ordering::Less => { |
| 410 | // Pull the workers we intend to halt out of the thread manager. |
| 411 | let terminating_workers = managed_workers.split_off(new_size); |
| 412 | |
| 413 | // Terminate and wake the workers. |
no test coverage detected