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

Method grow

src/thread_pool.rs:247–249  ·  view source on GitHub ↗

Adds the given number of threads to the thread pool. Returns the new size of the pool. The new size may be smaller than requested if all the seats in the thread pool are occupied. See [`ThreadPool::resize`] for more information about resizing.

(&'static self, added_threads: usize)

Source from the content-addressed store, hash-verified

245 match handler.as_ref() {
246 Some(handler) => handler(payload),
247 None => {
248 eprintln!(
249 "Forte: job panicked with no panic handler set; aborting"
250 );
251 abort();
252 }

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected