advanceUntilIdle

Immediately execute all pending tasks and advance the virtual clock-time to the last delay.

If new tasks are scheduled due to advancing virtual time, they will be executed before advanceUntilIdle returns.

Return

the amount of delay-time that this Dispatcher's clock has been forwarded in milliseconds.