Why is TaskScheduler.Current the default TaskScheduler?
问题 The Task Parallel Library is great and I've used it a lot in the past months. However, there's something really bothering me: the fact that TaskScheduler.Current is the default task scheduler, not TaskScheduler.Default. This is absolutely not obvious at first glance in the documentation nor samples. Current can lead to subtle bugs since its behavior is changing depending on whether you're inside another task. Which can't be determined easily. Suppose I am writting a library of asynchronous