New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shutdown dispatcher #4160
shutdown dispatcher #4160
Conversation
Incorrectly autoclosed when cats-effect-3 branch was merged. |
Where does |
BTW munit-cats-effect has fixture constructors for import cats.effect.std.Dispatcher
val dispatcher = ResourceFixture(Dispatcher[IO])
dispatcher.test("resources can be lifted to munit fixtures") { dsp =>
dsp.unsafeRunAndForget(IO(42))
} |
Yes this is coming from MUnit |
Yes I saw that. Do you think you should prefer that? |
It seems like the munit-cats-effect version requires a lambda per test? The mixin is syntactically lighter, but too many mixins can get disorienting. I haven't written enough MUnit tests to have a strong opinion which is nicer. I defer to @RaasAhsan or @cquiroz. Either way, this does look like forward progress. |
We've been using |
Suggestion:
|
👍 I'm not optimistic it will help that test, but I think it is an improvement, and we can follow up with the |
The variant with |
shutdown dispatcher
following http4s/http4s#4160, try if using `ResourceFixture(Dispatcher[IO])` is better than the current approach.
No description provided.