I was running the code from this answer https://stackoverflow.com/a/28539360/3114498 The guy created example how TaskContinuationOptions.ExecuteSynchronously runs continuation on the same thread. When I compile it with net48, indeed all continuations runs on the same thread but when compiled with net6.0, continuations runs on different threads on the thread pool. What change in net6.0 causes this?
Why TaskContinuationOptions.ExecuteSynchronously have different behavior in net6.0 compared to net48
Asked
Active
Viewed 19 times