object's event processing loop to execute ready handlers.
function runs handlers that are ready to run, without blocking, until
has been stopped or there are no more ready handlers.
The number of handlers that were executed.
Thrown on failure.