(&mut self)
| 1075 | } |
| 1076 | |
| 1077 | /// Temporarily sets the thread's worker. [`Worker::with_current`] always |
| 1078 | /// returns a reference to the worker set up by the most recent call to |
| 1079 | /// `activate`. |
| 1080 | /// |
| 1081 | /// Rust's thread locals are fairly costly, so this function is expensive. |
| 1082 | /// If you can avoid calling it, do so. |
| 1083 | /// |
| 1084 | /// # Panics |
| 1085 | /// |
| 1086 | /// If a panic occurs within the closure, it is captured and the worker is |
| 1087 | /// safely torn down before the panic is re-emitted. Panics within jobs run |
| 1088 | /// by this worker are passed to the pool's panic handler, as described in |
nothing calls this directly
no outgoing calls
no test coverage detected