11 lines
216 B
Go
11 lines
216 B
Go
package historyimport
|
|
|
|
import "context"
|
|
|
|
func newRunContext(parent context.Context) (context.Context, context.CancelFunc) {
|
|
if parent == nil {
|
|
parent = context.Background()
|
|
}
|
|
return context.WithCancel(parent)
|
|
}
|