Optionalfunctions: ThreadJobDataFunctionsReadonlycompletedA subject that contains whether or not the job was completed.
OptionalerrorThe error that the job failed with.
ReadonlyidA unique identifier of the job. This differs from the threadId, which is created by the os and set when the thread actually starts..
OptionalonWhat should happen when the thread job was cancelled.
OptionalonWhat should happen when the thread job completes.
OptionalonWhat should happen when an error occurs inside the thread job.
OptionalonWhat should happen when a message is received from the thread job.
Wether or not the job should use priority workers.
The progress of the job in a percentage.
ReadonlyqueuedTimestamp of when the job was queued in milliseconds.
OptionalresultThe result that the job finished with.
OptionalstartedTimestamp of when the job was started in milliseconds.
The status of the job.
OptionalstoppedTimestamp of when the job was stopped in milliseconds.
OptionalthreadThe id of the thread that the job is running in. Set by the os.
The timeout after which the job should exit with an error.
ReadonlytypeThe type of the job. (whether it's a real job with db persistence or just a simple function call).
ReadonlyworkerData that should be passed to the worker.
A thread job.