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:
parent
275633775c
commit
c42d313975
1 changed files with 18 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue