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 theCompletable
representing the close.
-
Method Details
-
doClose
Supplies theCompletable
representing the close.- Parameters:
graceful
-true
if the returnedCompletable
should attempt to close gracefully.- Returns:
Completable
representing close of the resource.
-