Return void from McpStatelessSyncServer#closeGracefully instead of Mono (#1019)

Co-authored-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
Christian Tzolov 2026-06-11 12:02:44 +02:00 • committed by GitHub
commit c42d313975
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,10 +50,10 @@ public class McpStatelessSyncServer {
/**
* Gracefully closes the server, allowing any in-progress operations to complete.
* @return A Mono that completes when the server has been closed
*
*/
public Mono<Void> closeGracefully() {
return this.asyncServer.closeGracefully();
public void closeGracefully() {
this.asyncServer.closeGracefully().block();
}
/**