Incorporating review comments

This commit is contained in:
Sunil Joshi 2023-10-09 17:31:31 +05:30
parent a88f7e476b
commit c8325f0511

View file

@ -1439,8 +1439,9 @@ 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: From Go 1.21, there is a way to create a new context without cancel. WithoutCancel returns a copy of parent that is not canceled when parent is canceled.
Read more [here](https://pkg.go.dev/context#WithoutCancel)
???+ 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.
In summary, propagating a context should be done cautiously.