public interface AsyncCloseable extends AsyncCloseable
AsyncCloseable
is a resource that can be closed. The closeAsync()
method is invoked to request resources
release that the object is holding (such as open files).Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
closeAsync()
Requests to close this object and releases any system resources associated with it.
|
CompletableFuture<Void> closeAsync()
Calls to this method return a CompletableFuture
that is notified with the outcome of the close request.
closeAsync
in interface AsyncCloseable
Copyright © 2025 lettuce.io. All rights reserved.