there's no real point in wrapping an ASYNC method in a Task.Run... Essentially what ASYNC does is takes some work and processes it as resources are available on the current thread. That way you can run multiple tasks in parallel on one thread and have them not hold each other up, for say I/O waiting, etc.
What he's doing here is pushing the "real world work," off onto a secondary thread that isn't the main application thread--ideally to keep from hanging up any UI (if using Forms/WPF). Otherwise, this would essentially be a waste. The code would work exactly the samed with Task.Run() witho…
What he's doing here is pushing the "real world work," off onto a secondary thread that isn't the main application thread--ideally to keep from hanging up any UI (if using Forms/WPF). Otherwise, this would essentially be a waste. The code would work exactly the samed with Task.Run() witho…