package historyimport import "context" func newRunContext(parent context.Context) (context.Context, context.CancelFunc) { if parent == nil { parent = context.Background() } return context.WithCancel(parent) }