CI / ci (push) Successful in 9m17s
Co-authored-by: orchestrator-agent <20+orchestrator-agent@code.cubecraftcreations.com>
10 lines
226 B
Go
10 lines
226 B
Go
package scheduler
|
|
|
|
import "time"
|
|
|
|
// SetClock makes now the clock and after the timer s fires by.
|
|
func SetClock(s *Scheduler, now func() time.Time, after func(time.Duration) <-chan time.Time) {
|
|
s.now = now
|
|
s.after = after
|
|
}
|