stopGracefully

abstract fun stopGracefully(): Mono<Void>

Asynchronously closes this resource with graceful shutdown.

Returns a Mono<Void> that completes when all ongoing operations have finished and the resource has been cleanly shut down. Implementations should ensure that:

  • No new operations are accepted after shutdown begins

  • All in-flight operations are allowed to complete

  • Resources are properly released

This method enables non-blocking shutdown in reactive applications.

Return

A Mono<Void> that completes when shutdown is finished

See also

for the synchronous blocking version