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

Add a cancellation callback to OperationObserver #31

Merged
merged 2 commits into from Nov 25, 2015
Merged

Add a cancellation callback to OperationObserver #31

merged 2 commits into from Nov 25, 2015

Conversation

davedelong
Copy link
Contributor

This makes it much easier for an Operation subclass to react to cancellation. If you were to override cancel(), you'd have to account for the possibility that the method may be called multiple times. By using a cancellation observer, you don't.

MarkQSchultz added a commit that referenced this pull request Nov 25, 2015
Add a cancellation callback to OperationObserver
@MarkQSchultz MarkQSchultz merged commit c4d70c2 into pluralsight:master Nov 25, 2015
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.

None yet

2 participants