public interface AsyncCloseable extends AutoCloseable
AutoCloseable.close(),
this interface provides closeAsync() which releases the resources asynchronously, returning
a CompletableFuture which is completed after the resources are released.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any underlying resources held by this object synchronously.
|
CompletableFuture<?> |
closeAsync()
Releases any underlying resources held by this object asynchronously.
|
CompletableFuture<?> closeAsync()
CompletableFuture which is completed after the resources are releasedvoid close()
close in interface AutoCloseableCopyright © 2020 LeanCloud. All rights reserved.