6 ms·
I would really want to see there Go with their goroutines, Kotlin with their coroutines, and good old Java with their CompletableFuture vs. virtual threads (an
by deepsun 4d ago
I would really want to see there Go with their goroutines, Kotlin with their coroutines, and good old Java with their CompletableFuture vs. virtual threads (and compare that with non-continuation ThreadPoolExecutor).
IMO the discussion without Go is really lacking, as it's the whole point of Go.
- tcfhgj 4d agoon the other hand it is trivial to project goroutines onto Rust-tokio async/await: function func() -> async fn func() go func -> tokio::task::spawn(func) func() -> func().await func_blocking() -> tokio::task::spawn_blocking(||func_blocking()).await (not sure about cancellation behavior in go though)