We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d92da6 + 9f85a46 commit 6e9b579Copy full SHA for 6e9b579
context.md
@@ -319,7 +319,7 @@ func propagateCancel(parent Context, child canceler) {
319
}
320
```
321
322
-parentCancelCtx 只识别 context 包内的三种类型,如果用户自己的类实现了 context.Context 接口,或者把 ctx 包在了自己的类型内,那这里始终返回的是 nil,false。
+parentCancelCtx 只识别 context 包内的三种类型,如果用户自己的类实现了 context.Context 接口,或者把 ctx 包在了自己的类型内,或者是 emptyCtx,那这里始终返回的是 nil,false。
323
324
```go
325
func parentCancelCtx(parent Context) (*cancelCtx, bool) {
0 commit comments