I just wonder what's the method for? In what kind of scenario I can use this method.
My initial thought is
RunSynchronously is for calling an async method and running that synchronously without causing a deadlock issue like what
However, according to MSDN,
Ordinarily, tasks are executed asynchronously on a thread pool thread and do not block the calling thread. Tasks executed by calling the RunSynchronously() method are associated with the current TaskScheduler and are run on the calling thread. If the target scheduler does not support running this task on the calling thread, the task will be scheduled for execution on the schedule, and the calling thread will block until the task has completed execution
Why need a TaskScheduler here, if the task going to run on the calling thread?