This function will set the maximum interval that a thread
waiting in the pool for new tasks can be idle for before
being stopped. This function is similar to calling
g_thread_pool_stop_unused_threads() on a regular timeout,
except this is done on a per thread basis.
By setting interval to 0, idle threads will not be stopped.
The default value is 15000 (15 seconds).
Parameters
interval: number
the maximum interval (in milliseconds) a thread can be idle
This function will set the maximum
intervalthat a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to callingg_thread_pool_stop_unused_threads()on a regular timeout, except this is done on a per thread basis.By setting
intervalto 0, idle threads will not be stopped.The default value is 15000 (15 seconds).