Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhicks committed Oct 10, 2024
1 parent 54cd813 commit d2cc340
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions process/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func (s tzSchedule) Next(t time.Time) time.Time {
}

type (
// ContextFunc should create a child context of ctx and return a cancellation function
// the cancel function will be called after the process has been executed
// TODO(adam): Offer a CancelCauseFunc option for cancelling the context
ContextFunc = func(ctx context.Context) (context.Context, context.CancelFunc, error)
AwaitRoleFunc = func(role string) ContextFunc
ScheduledFunc func(ctx context.Context, lastRunTime, runTime time.Time, runID string) error
Expand Down

0 comments on commit d2cc340

Please sign in to comment.