Checks if any sources have pending events for the given context.
a MainContext (if null, the default context will be used)
true if events are pending.