Improve Netty code sample

See gh-29622
This commit is contained in:
Marten Deinum 2022-12-02 10:25:43 +01:00 committed by rstoyanchev
parent db53b618c1
commit c1da2a4e73
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ The code snippets below show using the `HttpHandler` adapters with each server A
----
HttpHandler handler = ...
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
HttpServer.create().host(host).port(port).handle(adapter).bind().block();
HttpServer.create().host(host).port(port).handle(adapter).bindNow().onDispose().block();
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
.Kotlin