On Mon Nov 6 14:42:44 2023 +0000, Nikolay Sivov wrote:
Is it possible to have some demo program that demonstrates this?
demonstrate the leak? or demonstrate the race condition?
in the first case, our unit test already does. in the second case, i don't see how that's useful? the race condition is pretty clearly there, simply based on the fact that the callback might be running when you try to cancel it.