3 ms·
AutoCloseable is the same as Python's __exit__, it exists as a hook to try-with-resource in the same way __exit__ is a hook for `with`.
by masklinn 6y ago
AutoCloseable is the same as Python's __exit__, it exists as a hook to try-with-resource in the same way __exit__ is a hook for `with`.