Skip to content
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

POC: plugging the cancelable leak #3491

Draft
wants to merge 13 commits into
base: series/3.x
Choose a base branch
from

Conversation

armanbilge
Copy link
Member

Implements a proof-of-concept for my proposal in #3474 (comment).

To re-iterate:

  1. IO.Cancelable[+A](ioa: IO[A], cancel: IO[Unit]) is now a primitive operation
  2. When you enter a Cancelable, it exposes its cancel operation as part of the fiber.cancel.
  3. By leaning into uncancelable semantics, this guarantees that the final result of ioa (be it success, error, or cancellation) will always be propagated.

As such, it plugs the leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant