|number of threads per pool|
|max running jobs pre thread|
First we create worker thread.
worker class must inherit from
now we can inject poolProvider and run our worker
message event emitted from the worker using the worker
post message in worker class
error event emitted if the worker thread throws an uncaught exception.