* @returns true when all the resources of the given task are loaded * (but maybe not parsed).
(taskIdentifier: string)
| 1302 | * (but maybe not parsed). |
| 1303 | */ |
| 1304 | areAssetsLoaded(taskIdentifier: string): boolean { |
| 1305 | const loadingState = this.loadingStates.get(taskIdentifier); |
| 1306 | if (!loadingState) return false; |
| 1307 | |
| 1308 | return ( |
| 1309 | loadingState.status === 'loaded' || loadingState.status === 'ready' |
| 1310 | ); |
| 1311 | } |
| 1312 | |
| 1313 | /** |
| 1314 | * @returns true when all the resources of the given task are loaded and |
no test coverage detected