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.
1 parent be0a3ea commit 76752dbCopy full SHA for 76752db
middleware/timeout.go
@@ -62,8 +62,8 @@ func TimeoutWithConfig(config TimeoutConfig) echo.MiddlewareFunc {
62
63
done := make(chan error, 1)
64
go func() {
65
- // This goroutine will not stop even this middleware timeouts,
66
- // unless someone in the next(c) call chain handle ctx.Done() properly
+ // This goroutine will keep running even if this middleware times out and
+ // will be stopped when ctx.Done() is called down the next(c) call chain
67
done <- next(c)
68
}()
69
0 commit comments