-
Notifications
You must be signed in to change notification settings - Fork 576
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 taskForCompletionOfAllTasksWithResults and faulted property #76
Conversation
Hey Joseph, this looks really good. The only thing that I am not sure is the method name. @grantland what do you think? |
@nlutsenko-fb updated & squashed. I renamed the method to Here was the same change for Android FYI BoltsFramework/Bolts-Android#46 |
Add taskForCompletionOfAllTasksWithResults and faulted property
I found this thread via a search on: Bolts "faulted = YES" ... The ONLY thing changed between a working app and this was UI settings of another view, a child of the offending view. Unsettling that Bolts is giving nothing to act on yet is stopping my app from running. For now i am going to toss in a check for a nil error and ignore, but this is frustrating. ;) The stoppage occurs in:
|
Please could you open a new issue and provide as much detail as possible there -- since this issue was closed the information may get missed here. If you could elaborate a little more on how you are using tasks it would be helpful:
|
This is buried in Parse's implementation of Bolts within their PFQueryTableViewController. The most frustrating part is that there is NO data error here, guaranteed. And the rest of the app, using bolts, parse and the backend is working and i have done nothing to the view that barfs. |
and yes.. i will open another ;) |
Great thanks 😄 So is the NSInternalInconsistencyException being raised? Or some other exception is raised when trySetError is called? |
@josephearl updated the pull request. |
Add taskForCompletionOfAllTaskResults to match Task.whenAllResult in Bolts-Android. All tasks should be of the same type.
Also add isFaulted property for consistency with Android and C#, tests for taskForCompletionOfAllTaskResults & missing tests for immediate completion of taskForCompletionOfAllTask and taskForCompletionOfAllTaskResults.
Similar to #74 but this adds a new method rather than modifying the existing one.