News for hackers. Stuff that matters.
Re:.NET 8 by neonsunset on Tuesday November 14, 2023 @11:53AM (#38265903)
.NET has had first-class parallelism and async/await since around .NET Framework 4.0 release which was...13 years ago huh. There have been many improvements in the underlying runtime since then though.

A garden variety of keywords is async/await, TPL (tasks/futures and structured concurrency) and PLINQ (Rust's Rayon).

Re:.NET 8 by orra on Tuesday November 14, 2023 @03:31PM (#38269295)
You're right the basic support's been around a long time. However, originally you always had to use Task methods. The pleasant async/await keywords didn't arrive until C# 5.0, in 2012.

Admittedly that's also a long time ago.

Re:.NET 8 by WorldMaker on Tuesday November 14, 2023 @04:40PM (#38270192)
In addition to the base TPL (System.Threading.Tasks), IAsyncEnumerable<T> in recent .NET versions has deepened and simplified even more useful concurrency patterns (Async Generators), especially when paired with Ix.NET (System.Interactive.Async) which adds a lot more LINQ/PLINQ operators, many of which are designed to intentionally mirror ReactiveX.NET (System.Reactive), the even older but just as useful push-based (IObservable) relative of IAsyncObservable.