IEventService
Represents an event loop.
See 7.1.4.2 Processing model.
Enqueues a given task with the associated document.
Executes the compound subtask by invoking the series of
steps from a microtask source.
Spins the event loop until the provided condition is met.