mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
README: Small update to clarify on Goroutines
This commit is contained in:
parent
9e895470dd
commit
cbbbe4583c
@ -1071,7 +1071,7 @@ func main() {
|
||||
|
||||
### Goroutines inside a middleware
|
||||
|
||||
When starting inside a middleware or handler, you **SHOULD NOT** use the original context inside it, you have to use a read-only copy.
|
||||
When starting new Goroutines inside a middleware or handler, you **SHOULD NOT** use the original context inside it, you have to use a read-only copy.
|
||||
|
||||
```go
|
||||
func main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user