Hacker News new | ask | show | jobs
by John23832 848 days ago
Agreed. The task system in C# is pretty clean imo. Same with Rust (sans the type system implementation of Futures) and Go's goroutines. Especially compared to CompletableFuture in Java.
1 comments

Specifically, function coloring (C# and Rust in your examples) is not the same as coroutines in Go or virtual threads in Java.
Sure function coloring can be a problem, but the gp just spoke about async/await being a mess.

Function coloring can be handled by just blocking on an async function. Though the reverse takes some planning.