public interface Scope extends NonThrowingCloseable
Closeable
that represents a change to the current context over a scope of code.
close()
cannot throw a checked exception.
Example of usage:
try (Scope ctx = tryEnter()) { ... }
Modifier and Type | Method and Description |
---|---|
void |
close() |
void close()
close
in interface AutoCloseable
close
in interface Closeable
close
in interface NonThrowingCloseable