MCPcopy Create free account
hub / github.com/NthTensor/Forte / drop

Method drop

src/thread_pool.rs:1077–1085  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected