Package io.servicetalk.concurrent.api
Interface AsyncCloseables.CloseableResource
- Enclosing class:
- AsyncCloseables
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A resource that can be converted to an
AsyncCloseable.-
Method Summary
Modifier and TypeMethodDescriptiondoClose(boolean graceful) Supplies theCompletablerepresenting the close.
-
Method Details
-
doClose
Supplies theCompletablerepresenting the close.- Parameters:
graceful-trueif the returnedCompletableshould attempt to close gracefully.- Returns:
Completablerepresenting close of the resource.
-