Scala 3, Programming Scala.
lightweight fibers coming in Project Loom would only be available to users on the most recent JVMs (19 and later). Besides writing custom implementations for each of these scenarios, other possible implementations might use source or bytecode rewriting. Work has started in the lampepfl/async repo,