One possible example of priority usage:
when app goes to background, system send suspend event to app. There're two handlers for this event, the first one is to notify app to run onSuspend() callback, the second one is to suspend JS engine of this app. Of course we want the second one runs after the first finishes.