requestTermination
Requests termination of the worker.
Since Kotlin
1.3Parameters
processScheduledJobs
controls is we shall wait until all scheduled jobs processed, or terminate immediately. If there are jobs to be execucted with executeAfter their execution is awaited for.