mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
Incorporating review comments
This commit is contained in:
parent
c8325f0511
commit
239165afcf
1 changed files with 1 additions and 1 deletions
|
|
@ -1439,7 +1439,7 @@ When the response has been written to the client, the context associated with th
|
|||
|
||||
In the latter case, calling publish will return an error because we returned the HTTP response quickly.
|
||||
|
||||
???+ note
|
||||
???+note
|
||||
|
||||
From Go 1.21, there is a way to create a new context without cancel. [`context.WithoutCancel`](https://pkg.go.dev/context#WithoutCancel) returns a copy of parent that is not canceled when parent is canceled.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue