Is there a cron-like scheduler within the engine? For example, every X frames, execute a callback?
This is not exactily what you want, But I have solved similar problem with this approach:
The solution as it is is not covering cylic events, could be added in the proccesing function, by readding them after being triggered…
Oh, that’s a very interesting approach. Thanks for the snippet!