this post was submitted on 23 Jun 2025
12 points (100.0% liked)
Golang
2482 readers
2 users here now
This is a community dedicated to the go programming language.
Useful Links:
Rules:
- Posts must be relevant to Go
- No NSFW content
- No hate speech, bigotry, etc
- Try to keep discussions on topic
- No spam of tools/companies/advertisements
- It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Depending of how complicated you want it to be of course.
I would implement it by using the basic goroutines, a wait group to keep track of the goroutines and sleep for the recurring duration.
Maybe a more optimal solution would be to use a workerpool.
Also what amount of emails are we talking about and what kind of recurring duration(1/hour or 1/year)