Lines Matching refs:returns
103 The `promise` method returns the promise of the deferred.
200 It returns a new promise that will fulfill with the return value of either
245 `done()` always returns `null`.
289 * If `$promise` fulfills, and `$onFulfilledOrRejected` returns successfully,
291 * If `$promise` fulfills, and `$onFulfilledOrRejected` throws or returns a
294 * If `$promise` rejects, and `$onFulfilledOrRejected` returns successfully,
296 * If `$promise` rejects, and `$onFulfilledOrRejected` throws or returns a
316 Similar asynchronous code (with `doSomething()` that returns a promise) can be
642 Each call to `then()` returns a new promise that will resolve with the return
651 // and returns a *new promise* for $x + 1