When a specific event is triggered I want to increase its priority of execution. As per the documentation the events are asynchronous and priority can not be set.
Is there any way to do so?
As I know not on a standard way.
You will need to implement you system. But By the way, as TW doesn't supports Multiple subscriptions from the same Thing to the same Event, you will end up ( if your use case it's complex ) doing it anyway.
Implement my own system?
I'm sorry but i'm unable to figure out your solution. Can you please elaborate?
Well, not something that can be written on two lines
What I will do it's to build a ThingShape which subscribes to the desired Events to keep in control, and add this Shape to any Thing which you should keep in control.
Then from this subscription code, you can control the execution order for whatever.