typelevel / cats-effect

The pure asynchronous runtime for Scala
https://typelevel.org/cats-effect/
Apache License 2.0
2.01k stars 514 forks source link

Implement platform-specialized `Queue`s for ScalaJS #2889

Open djspiewak opened 2 years ago

djspiewak commented 2 years ago

This is probably super-easy because you just don't have to worry about concurrency at all. Given an Async[F], you can do a stupid-simple UnsafeBounded and UnsafeUnbounded from #2885 that should run faster on JavaScript than the JVM versions (which have to guard a lot of complex multi-threaded cases).

The main problem is that we probably shouldn't do this until we have benchmarking infrastructure for ScalaJS. This is unquestionably worth doing in and of itself.

armanbilge commented 2 years ago

Linking to my benchmarking proposal in https://github.com/typelevel/cats-effect/issues/2684.