angularjs - Resolving the resolved promise again -


i'm using $q of angularjs, when create single promise , promise resolved, can resolved again? don't know if possible if not there way can resolve same promise again , again. thinking of using notify way don't know if there other ways this.

a promise resolved or rejected once can't change state.

there 1 chance of providing promised results. in other words it not possible to:

  • resolve rejected promise
  • resolve resolved promise different result
  • reject resolved promise
  • reject rejected promise different rejection reason

those rules rather intuitive. example, wouldn't make sense if called information there problems pizza order delivery after pizza delivered (and eaten!).

if provide more code , can understand better trying might able you.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -