On Mon Nov 6 14:46:29 2023 +0000, Yuxuan Shui wrote:
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.
https://gist.github.com/yshui/2f1c5c8ce9d80e9eef1db4eab51344d0 this demonstrate the `CloseThreadpool` vs running callback race.