Access to disposed closure in C#?

You pass doneWaitingEvent to a lambda that may extend beyond the scope of the using block. I.e. there’s a risk that Dispose will have been called when the lambda executes.

Leave a Comment