News for hackers. Stuff that matters.
Re:Comparison of Rust async and Linux thread context switch ... by GordonS on Friday February 12, 2021 @03:17PM (#26118078)
Yes, I meant using Task.Run; I was simplifying, as I'd assumed (wrongly) you were familiar with async/await from another language.

Otherwise, from memory, the runtime spec doesn't actually guarantee that await won't run on a threadpool thread - it will under certain circumstances.

And then there are further nuances if there is a synchronisation context and ConfigureAwait(false) is used, as the continuation will be scheduled on a threadpool thread.

There are no comments on this comment yet.