public interface Scope extends Closeable
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 AutoCloseableclose in interface Closeable