Re:Async destructors, async genericity and completion futures
by e12e on Thursday June 02, 2022 @09:29AM
(#31594609)
Feels like this should be a language feature, though - like how python passes self for objects - or ruby binds self for you?
[ Parent
| on HN ]
Re:Async destructors, async genericity and completion futures
by AgentME on Monday June 06, 2022 @05:24PM
(#31646495)
Kotlin has "structured concurrency" which I believe automatically handles some cases of this, but I don't fully understand it. I find explicit cancellation tokens without any magic easier to understand.