Interface AsyncCloseables.CloseableResource

  • Enclosing class:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public static interface AsyncCloseables.CloseableResource
    A resource that can be converted to an AsyncCloseable.
    • Method Detail

      • doClose

        Completable doClose​(boolean graceful)
        Supplies the Completable representing the close.
        graceful - true if the returned Completable should attempt to close gracefully.
        Completable representing close of the resource.