stop

open fun stop()

Synchronously stops this resource with a 30-second timeout.

Blocks the calling thread until all ongoing operations complete or the 30-second timeout expires — whichever comes first. If the timeout expires, this method returns without guaranteeing that all operations have finished.

See also

for the asynchronous version

Throws

if the underlying reactive stream fails


open fun stop(timeout: Duration)

Synchronously stops this resource within the specified timeout.

Blocks the calling thread until all ongoing operations complete or the timeout expires. If the timeout expires, this method returns without guaranteeing that all operations have finished.

Parameters

timeout

The maximum duration to wait for graceful shutdown to complete

See also

for the asynchronous version

for the version with the default 30-second timeout

Throws

if the underlying reactive stream fails