-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoCloseScope: the order of close method calls is not the same as AutoCloseable.use
#3386
Comments
Oh, that's indeed incorrect. It should be the same as Thanks for creating the report @hoc081098! I think we need to get another patch out in a couple days, before we switch to 2.x.x 😞 |
hoc081098
added a commit
to hoc081098/arrow
that referenced
this issue
Mar 2, 2024
hoc081098
added a commit
to hoc081098/arrow
that referenced
this issue
Mar 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version are you currently using?
1.2.3
What would you like to see?
Preproduce by https://github.com/hoc081098/kotlin_playground/blob/master/src/main/kotlin/com/hoc081098/kotlin_playground/arrowkt/autoCloseable.kt
The console output:
The order of close method calls
AutoCloseable.use
: 3 -> 2 -> 1autoCloseScope
: 1 -> 2 -> 3The text was updated successfully, but these errors were encountered: