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

Implement CancelableOperation.then #83

Merged
merged 2 commits into from
Apr 5, 2019

Conversation

TastyPi
Copy link
Contributor

@TastyPi TastyPi commented Apr 4, 2019

Fix #80.

@TastyPi
Copy link
Contributor Author

TastyPi commented Apr 4, 2019

@natebosch @lrhn

The issue of whether to propagate the cancellation to the original operation still happens here, but I think this is a lot clearer with what is happening than the version with callbacks returning CancelableOperations.

@lrhn lrhn merged commit 50a856f into dart-lang:master Apr 5, 2019
@lrhn
Copy link
Member

lrhn commented Apr 5, 2019

LGTM. It's a much more focused API than the original one. A cancelable operation is a combination of result future and cancel channel. It makes sense to have an operation which acts on both (a then on the future, plus back-propagation of cancel).

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

Successfully merging this pull request may close these issues.

3 participants