News for hackers. Stuff that matters.
Re:Await in Rust by jules on Monday August 12, 2019 @11:30AM (#20676322)
Kotlin has an interesting midpoint between async/await and built-in lightweight threads. With async/await calls are async by default and if you await them they become synchronous. In Kotlin and with built-in lightweight threads this is reversed, but in Kotlin the callee still has a different function signature depending on whether it uses async internally or not.
Re:Await in Rust by Cyph0n on Monday August 12, 2019 @12:13PM (#20676789)
I believe that this is how Scala does it, too. The caller provides an execution context that defines how the task will be run.