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.
@FunctionalInterface public static interface AsyncCloseables.CloseableResourceA resource that can be converted to anAsyncCloseable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletabledoClose(boolean graceful)Supplies theCompletablerepresenting the close.
-
-
-
Method Detail
-
doClose
Completable doClose(boolean graceful)
Supplies theCompletablerepresenting the close.- Parameters:
graceful-trueif the returnedCompletableshould attempt to close gracefully.- Returns:
Completablerepresenting close of the resource.
-
-