Is such a mechanism available?
Such a mechanism is indeed planned to be added in a future versoin. It might take a while, though, to make this happen, as we first want to sort out what are the most important use cases (e.g.: do we want synchronous or asynchronous triggers?). You are invited in following the discussion at GitHub: