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

Method resize_to

src/thread_pool.rs:238–240  ·  view source on GitHub ↗

Resizes the pool to the specified number of threads. Returns the new size of the thread 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, new_size: usize)

Source from the content-addressed store, hash-verified

236 match handler.as_ref() {
237 Some(handler) => handler(payload),
238 None => {
239 eprintln!(
240 "Forte: job panicked with no panic handler set; aborting"
241 );
242 abort();
243 }

Callers 2

resize_to_availableMethod · 0.80
depopulateMethod · 0.80

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected