ThreadPool::Interrupt

Stop accepting new tasks and begin asynchronous shutdown.

Synopsis

Declared in <util/threadpool.h>

[[requires_capability(0x7f2e2046a728)]]
void
Interrupt();

Description

Wakes all worker threads so they can drain the queue and exit. Unlike Stop(), this function does not wait for threads to finish.

Note: The next step in the pool lifecycle is calling Stop(), which releases any dangling resources and resets the pool state for shutdown or restart.