Avoid unnecessary allocation in Uncancelable trait.#4600
Conversation
|
This fails one of the tests with: This happens since there are no longer any fields in the trait and so the Scala compiler eliminates the Please advice what the right thing to do is in this case. |
|
I fear this is probably a valid complaint by mima. I suspect every existing implementer of |
290717f to
6b27a6c
Compare
|
@durban Hi Daniel, I found a workaround to the mima problem. Please take a look and let me know when you get a chance. |
…ed to MonadCancel object).
6b27a6c to
dcba7ab
Compare
Avoid unnecessary allocation in Uncancelable trait for idPoll. We can just allocate it once in object
MonadCanceland apply the usual Id Monad trick (as in for exampleResource.liftK).