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