(&mut self)
| 185 | |
| 186 | impl Drop for WorkerHandle { |
| 187 | fn drop(&mut self) { |
| 188 | // Close the worker's stdin first; otherwise it sits in `read_exact` |
| 189 | // forever and `wait()` deadlocks waiting for it to exit. |
| 190 | drop(self.stdin.take()); |
| 191 | let _ = self.child.wait(); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | impl WorkerPool { |