GetNextSchedule returns the next schedule for the given context.
(ctx context.Context)
| 23 | |
| 24 | // GetNextSchedule returns the next schedule for the given context. |
| 25 | func GetNextSchedule(ctx context.Context) time.Time { |
| 26 | if ctx == nil { |
| 27 | return time.Time{} |
| 28 | } |
| 29 | if t, ok := ctx.Value(nextContextKey).(time.Time); ok { |
| 30 | return t |
| 31 | } |
| 32 | return time.Time{} |
| 33 | } |