#actor in filter plugin (v11)

I want to use `actor.every(interval) { ... }` in filter plugins such as fluent-plugin-grepcounter.