It can be quite useful to have a callback run before each
thread starts to do work, to setup any thread-local context
or other thread specifics that will be used throughout the
threads lifecycle. Adding a callback as an init argument
allows this to easily occur.
It can be quite useful to have a callback run before each thread starts to do work, to setup any thread-local context or other thread specifics that will be used throughout the threads lifecycle. Adding a callback as an init argument allows this to easily occur.