Skip to content

Aligned Operation cancel behavior with Darwin Foundation #1229

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

Merged
merged 1 commit into from
Oct 5, 2017
Merged

Aligned Operation cancel behavior with Darwin Foundation #1229

merged 1 commit into from
Oct 5, 2017

Conversation

dplanitzer
Copy link
Contributor

  • calling cancel() or operationQueue.cancelAllOperations() from inside Operation.main() no longer crashes the app when the operation returns from main()
  • start() now skips the call to main() if the Operation is already in cancelled state

- calling cancel() or operationQueue.cancelAllOperations() from inside Operation.main() no longer crashes the app when the operation returns from main()
- start() now skips the call to main() if the Operation is already in cancelled state
@ianpartridge ianpartridge removed their request for review September 20, 2017 14:27
@alblue
Copy link
Contributor

alblue commented Oct 5, 2017

@swift-ci please test and merge

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.

4 participants