Hacker News new | ask | show | jobs
by pjmlp 1516 days ago
Or inserting the occasional Task.Run() calls, as means to avoiding changing the whole call stack up to Main().
1 comments

This hasn't been that much of a problem, IME

If you decide somewhere deep in your program you want to use async operations, most languages allow you to keep the invoking function/closure synchronous and return some kind of Promise/Future-like value

Which is exactly the workaround with Task.Run(), being able to integrate a library written with async/await in codebases older than the feature, where no one is paying for a full rewrite.