MCPcopy Create free account
hub / github.com/codnect/chrono / WithLocation

Function WithLocation

task.go:80–91  ·  view source on GitHub ↗
(location string)

Source from the content-addressed store, hash-verified

78}
79
80func WithLocation(location string) Option {
81 return func(task *SchedulerTask) error {
82 loadedLocation, err := time.LoadLocation(location)
83
84 if err != nil {
85 return fmt.Errorf("location not loaded : %s", location)
86 }
87
88 task.location = loadedLocation
89 return nil
90 }
91}
92
93type ScheduledTask interface {
94 Cancel()

Calls

no outgoing calls