Dynamic exclusitity violations and async/isolated methods

Oh, I overlooked that. Yeah, the dynamic exclusivity checking does not work across either tasks or threads. The problem with your attempt to get the tasks to share a thread with a custom executor is that, while the tracking is indeed thread-local, it all gets saved and restored when changing tasks; suspended tasks don’t just leave their state on the thread.

1 Like