WithJobErrorContainer adds a value to the context as a container for an error
(ctx context.Context)
| 29 | |
| 30 | // WithJobErrorContainer adds a value to the context as a container for an error |
| 31 | func WithJobErrorContainer(ctx context.Context) context.Context { |
| 32 | container := map[string]error{} |
| 33 | return context.WithValue(ctx, jobErrorContextKeyVal, container) |
| 34 | } |
| 35 | |
| 36 | func WithJobCancelContext(ctx context.Context, cancelContext context.Context) context.Context { |
| 37 | return context.WithValue(ctx, JobCancelCtxVal, cancelContext) |
no outgoing calls
searching dependent graphs…