mirror of
https://github.com/kataras/iris.git
synced 2026-03-08 01:16:30 +00:00
improve the new Wait method
This commit is contained in:
@@ -32,7 +32,7 @@ func main() {
|
||||
ctx.Writef("Hello, %s!", "World")
|
||||
})
|
||||
|
||||
app.Listen(":8080", iris.NonBlocking())
|
||||
app.Listen(":8080", iris.NonBlocking(), iris.WithoutServerError(iris.ErrServerClosed))
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user