2 ms·
Green threads without explicit language syntax for yielding - called goroutines influenced similar features in Kotlin. Unfortunately Kotlin is bound to working
by harikb 6y ago
Green threads without explicit language syntax for yielding - called goroutines influenced similar features in Kotlin. Unfortunately Kotlin is bound to working inside JVM and had to introduce “suspend” keyword.
This is a friendlier world to work in than explicit green threads using keywords like async/await in other languages (Dart, Rust, JS)
- bgorman 6y agoClojure has goroutines on the JVM with core.async, no yield needed :)
- Blackthorn 6y agoYou have to explicitly call out your async blocks though -- even worse!