cats-effect
cats-effect copied to clipboard
Change the `Example` app on Native
We can probably make it more similar to the JVM one now.
But ... maybe we can just remove these "examples" and associated CI tests? AFAICT they were never really examples IMO, but rather a way to test that IOApp behaves correctly. I think they've been far superseded by the IOAppSuite.
Yeah example is mostly the wrong term. I do want to keep them though because they essentially represent the fully end to end thing from a user's perspective. Or at the very least we should keep the JVM one since it tests an environment that we don't test in IOAppSuite (namely, unforked sbt).
we can host the examples on Scala CLI?, We could update the Native one to match JVM for consistency, as @armanbilge suggested, with clear notes on constraints like (no multithreading). Then, beef up IOAppSuite to handle unforked sbt and Native testing, keeping examples as pure, interactive docs.
Or at the very least we should keep the JVM one since it tests an environment that we don't test in IOAppSuite (namely, unforked sbt).
Good point, I forgot that. We should keep it.