Youssuf ElKalay
Youssuf ElKalay
How about using [sync.Once](https://golang.org/pkg/sync/#example_Once)? For example you could do something like: ``` package main import ( "fmt" "github.com/robfig/cron/v3" "sync" "time" ) func main() { kron := cron.New() once := sync.Once{}...
@Jinnrry That is correct the function passed to the job does get called repeatedly but because it is wrapped in in sync.Once it'll only actually be called once. As @robfig...
@small-egg Not a bad idea but your implementation isn't safe for concurrency. I would add a mutex to your OnceSchedule struct to insure you don't have 2 goroutines executing the...
@small-egg In your example use case - yes,but what happens if I have multiple instances of kron doing different tasks followed by a task that should only be done once....
@mghifariyusuf Really depends on your goal here. Do you want to determine if this cron library has kicked off the job in its own goroutine or do you want to...
The "start" time in this case would be whenever you invoke cron.Start(). You can have a system cron that you use to create/start another cron.
Also see #297 for more details.
A converter is nice but I was thinking more along the lines of pre-existing RESTful web services. I can see a use case for developers that want to generate client...
Sounds good. I'll see if I can carve out some time to add this feature in. I don't know Go but I'm sure it has a decent XML DOM parser....
Hello @mkabilov and @mattTruebill - thanks for your hard work on this project. Do either of you have an ETA when this PR will be pulled in? I have an...