* Returns promise with the data. * @template T * @returns {Promise<T>} promise with the data
()
| 62 | * @returns {Promise<T>} promise with the data |
| 63 | */ |
| 64 | getPromise() { |
| 65 | /** |
| 66 | * Returns promise with the data. |
| 67 | * @param {number} i index |
| 68 | * @returns {Promise<T>} promise with the data |
| 69 | */ |
| 70 | const next = (i) => |
| 71 | this._items[i].getPromise().then((result) => { |
| 72 | if (result !== undefined) return result; |
| 73 | if (++i < this._items.length) return next(i); |
| 74 | }); |
| 75 | return next(0); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Processes the provided data. |