Promises have a simple lifecycle. Initially, a promise is unresolved – it represents the expectation of receiving a result at some unspecified future time. When the result is received, the promise becomes fulfilled and the result becomes the value of the promise. If an error occurs, either in the calculation of the result or in the communications between the requesting and responding grains, the promise becomes broken and has no value. A promise that has been fulfilled or broken is considered resolved...(read more)
↧