* Get the list of resolved values. If they are not cached, it tries to find * and resolve them.
(session?: ResolutionOptionsOrSession)
| 231 | * and resolve them. |
| 232 | */ |
| 233 | async values(session?: ResolutionOptionsOrSession): Promise<T[]> { |
| 234 | debug('Reading values'); |
| 235 | // Wait for the next tick so that context event notification can be emitted |
| 236 | await new Promise<void>(resolve => { |
| 237 | process.nextTick(() => resolve()); |
| 238 | }); |
| 239 | if (this._cachedValues == null) { |
| 240 | return this.resolve(session); |
| 241 | } |
| 242 | return this.getCachedValues(); |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * As a `Getter` function |
no test coverage detected