Schedule task with cron expression

Hi everybody

I have created a small binding that polls a smart meter.
Currently the binding is just polling the meter at a configured interval in seconds.
However I would like to allow the user to configure the interval with a Cron expression.
But I am unsure how to implement this.
Is there something in the API I can use to easily do this or some other way to do this without to much work :slightly_smiling_face:?


I tried to find an example how to use this but there are no other bundles that use the class.
Do you have an example ?

It is used by Core to implement the cron trigger