3 ms·
Scala got a really nice solution to this whole problem area lately. Its new "cps-async" implementation has "auto coloring" as a highlight feature. The Scala co
by still_grokking 5y ago
Scala got a really nice solution to this whole problem area lately.
Its new "cps-async" implementation has "auto coloring" as a highlight feature. The Scala compile will just do the right thing in an async context.
Details can be found here:
https://rssh.github.io/dotty-cps-async/ https://rssh.github.io/dotty-cps-async/
One of the more interesting parts is also that "cps-async" works fine with arbitrary effect monads. There are integrations with Cats' IO and ZIO and some more.