Constructor.
()
| 44 | export class Deferred { |
| 45 | /** Constructor. */ |
| 46 | constructor() { |
| 47 | /** @const {Promise<T>} */ |
| 48 | this.promise = new /*OK*/ Promise((res, rej) => { |
| 49 | /** @const {function(T=)} */ |
| 50 | this.resolve = res; |
| 51 | /** @const {function(*=)} */ |
| 52 | this.reject = rej; |
| 53 | }); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected