Match lock deals with deadlocks caused by long-term tasks
I am confused by the results of running the following code. I can understand the logic of the behavior, but it seems a bit unreasonable to me (because I think it makes the variable lifetime confusing)