@@ -84,8 +84,8 @@ type Task func() task
8484
8585// NewTask provides the job's task function and parameters.
8686// If you set the first argument of your Task func to be a context.Context,
87- // gocron will pass in a context (either the default Job context, or one provided via WithContext)
88- // to the job and will cancel the context on shutdown.
87+ // gocron will pass in a context (either the default Job context, or one
88+ // provided via WithContext) to the job and will cancel the context on shutdown.
8989// This allows you to listen for and handle cancellation within your job.
9090func NewTask (function any , parameters ... any ) Task {
9191 return func () task {
@@ -710,8 +710,8 @@ func WithIdentifier(id uuid.UUID) JobOption {
710710
711711// WithContext sets the parent context for the job
712712// If you set the first argument of your Task func to be a context.Context,
713- // gocron will pass in a context (either the default Job context, or one provided via WithContext)
714- // to the job and will cancel the context on shutdown.
713+ // gocron will pass in a context (either the default Job context, or one
714+ // provided via WithContext) to the job and will cancel the context on shutdown.
715715// This allows you to listen for and handle cancellation within your job.
716716func WithContext (ctx context.Context ) JobOption {
717717 return func (j * internalJob , _ time.Time ) error {
0 commit comments