cats-effect
cats-effect copied to clipboard
Implement platform-specialized `Queue`s for ScalaJS
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.
Linking to my benchmarking proposal in https://github.com/typelevel/cats-effect/issues/2684.