mirror of
https://github.com/kataras/iris.git
synced 2026-08-08 21:49:08 +00:00
improve the new Wait method
This commit is contained in:
+1
-1
@@ -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