-
Notifications
You must be signed in to change notification settings - Fork 529
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
Document cancelation boundaries #1921
Document cancelation boundaries #1921
Conversation
I was trying to justify 3 (boundary after Also, I wasn't sure if this belonged in scaladoc or mdoc docs or both? |
I like it a lot. |
I think we'll definitely need some more on the website but this is a great start. |
Yeah, do you think I should directly copy this stuff to the website? Or is it too much detail for that? Still find that balance hard to judge |
I quite like this, though one downside to it is the text in question is somewhat |
Yeah I was worried about this as well. I'll see if I can find a place to move it to. The uncancelable boundary at the end of |
Meaning that def onCancelAssociatesOverUncancelableBoundary[A](fa: F[A], fin: F[Unit]) =
F.uncancelable(_ => F.onCancel(fa, fin)) <-> F.onCancel(F.uncancelable(_ => fa), fin)
This one is a bit trickier. I think this is guaranteed by the above law composed with the following: def uncancelablePollIsIdentity[A](fa: F[A]) =
F.uncancelable(_(fa)) <-> fa It's tricky though. Both are definitely pervasively assumed properties in polymorphic code. |
No description provided.