Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Jan
20
comment success:/failure: blocks vs completion: block
@Boon One reason I see the single handler as being more generic is for cases where you would prefer the callee/handler/block itself determine if an operation succeeded or failed. Consider partial success cases where you possibly have an object with partial data and your error object is an error indicating that not all data was returned. The block could examine the data itself and check to see if it is sufficient. This is not possible with the binary success/fail callback scenario.
Nov
12
awarded  Supporter