Decorator to inject a function based on a sift filter.
Can be applied to functions or class methods.
The decorated function/method will be called when an event matches the filter.
Parameters
filter: any
Sift query filter with optional 'priority' field for execution ordering
Decorator to inject a function based on a sift filter. Can be applied to functions or class methods. The decorated function/method will be called when an event matches the filter.