mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
Add cron.ScheduleTaskNonBlock for use with workers.Serve
This commit is contained in:
parent
8784539f6f
commit
84f6c350ca
@ -55,3 +55,7 @@ func ScheduleTask(task Task) {
|
||||
ready()
|
||||
select {}
|
||||
}
|
||||
|
||||
// ScheduleTaskNonBlock sets the Task to be executed but does not signal readiness or block
|
||||
// indefinitely. The non-blocking form is meant to be used in conjunction with [workers.Serve].
|
||||
func ScheduleTaskNonBlock(task Task) { scheduledTask = task }
|
||||
|
Loading…
x
Reference in New Issue
Block a user