mirror of
https://github.com/nabbar/golib.git
synced 2025-10-13 19:43:45 +08:00
@@ -27,6 +27,7 @@ package context
|
||||
import "context"
|
||||
|
||||
func IsolateParent(parent context.Context) context.Context {
|
||||
//nolint #govet
|
||||
x, _ := context.WithCancel(parent)
|
||||
return x
|
||||
}
|
||||
|
Reference in New Issue
Block a user