Since starting an idle period is called from processing a task on the main event loop, and every idle task is processed on that same event loop, it's implied from the spec that the idle tasks themselves would start a new idle period, resetting the deadline and allowing pending tasks to run.
This is of course not the intention, as the prose in the spec mentions that there could be only one idle period at the same time.
Since starting an idle period is called from processing a task on the main event loop, and every idle task is processed on that same event loop, it's implied from the spec that the idle tasks themselves would start a new idle period, resetting the deadline and allowing pending tasks to run.
This is of course not the intention, as the prose in the spec mentions that there could be only one idle period at the same time.