processQueue

Native
1.3
fun processQueue(): Boolean

Process pending job(s) on the queue of this worker. Note that jobs scheduled with executeAfter using non-zero timeout are not processed this way. If termination request arrives while processing the queue via this API, worker is marked as terminated and will exit once the current request is done with.

Exceptions

IllegalStateException - if this request is executed on non-current Worker.

Return true if request(s) was processed and false otherwise.