ReadonlyisSubject that contains whether or not the worker is still initializing.
ReadonlypriorityWhether or not this is a priority worker.
ReadonlythreadA persisted thread id. This is needed because the internal worker sets its threadId to -1 when it crashes => There is no way to check which thread job was affected by the crash.
OptionaltimeoutThe timeout object after which this thread should be terminated.
ReadonlyworkerThe actual worker.
A worker for handling thread job. Consists of the actual worker, whether or not it is a priority worker. And the information of whether the worker is still initializing.