6 ms·
Feels like this should be a language feature, though - like how python passes self for objects - or ruby binds self for you?
by e12e 4y ago
Feels like this should be a language feature, though - like how python passes self for objects - or ruby binds self for you?
- AgentME 4y agoKotlin 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.