https://kotlinlang.org logo
Title
g

groostav

06/15/2017, 9:50 PM
I'm also wondering if it might be a good idea to allow coroutines to override
finalize()
to
resumeWithException
rather than allow for the "abandoned" coroutine phenomina. I just spent a fair bit of time discovering a way we could produce abandoned coroutines and replacing them with an exception flow such that nobody simply gets left hanging (a form of live-lock I suppose?)
r

Ruckus

06/15/2017, 10:05 PM
groostav: Finalize will probably be deprecated in 10 http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-March/046650.html
g

groostav

06/22/2017, 7:43 AM
that thread describes cleaners and phantom references as OK, so i dont suppose this deprication is going to cause
FileChannel
to get a disposal-flow face lift. Honestly we still dont have a good solution to that stupid goddamn cleaner.