Scheduling in GO

I’m new to GO. I want to build application by GO which can create/delete/edit a task. That’s fine to me. However, while I’m creating new task, I just want to save as DRAFT and automatically save it to database 30 mins or a particular time period later. How can I do that ? Please help me to provide keyword , article, or code sample.

I don’t know this is good solution or not but I think go Timers is ok. Example.
When you save a task to Draft, create new timer with duration is 30mins or more. After that, start another goroutine for save task to database function. If timer expired, save task to database and return.

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