Open samspills opened 9 months ago
We should probably be pretty careful here. Any performance hit at all as a consequence of this is not worth it, since we know a priori that none of our internal callbacks will throw, and CallbackStack
is strictly internal. If we can do it without any performance hit though, it would be nice to not make unnecessary assumptions.
Capturing @durban's question here: https://github.com/typelevel/cats-effect/pull/3973#issuecomment-1913140555 And also @armanbilge: https://github.com/typelevel/cats-effect/pull/3943#discussion_r1451633273
I think we're all agreed that the remaining callbacks shouldn't just be abandoned, and when talking it through with Arman he had a proposed refactor: