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.CloseableResource
A resource that can be converted to anAsyncCloseable
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Completable
doClose(boolean graceful)
Supplies theCompletable
representing the close.
-
-
-
Method Detail
-
doClose
Completable doClose(boolean graceful)
Supplies theCompletable
representing the close.- Parameters:
graceful
-true
if the returnedCompletable
should attempt to close gracefully.- Returns:
Completable
representing close of the resource.
-
-