Scheduling of func after a dynamic interval

I want to schedule a function to push data in database after Time to live interval is passed. is there any solution other than time.Ticker because there can be many functions and time to live can be 1 minute longer or it can be month latter or week later and a day later. during this time to live interval data will be updated so i want all updates go into db after Time to live interval is passed.
How can i schedule that function for dynamic intervals

For duration that long it’s better to use a cron like os-level job scheduler. Or you may need to add functionality for re-adjusting your timers in case your app crashes or something else happens.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.