mirror of https://github.com/CesiumGS/cesium.git
15 lines
326 B
JavaScript
15 lines
326 B
JavaScript
import loaderProcess from "./loaderProcess.js";
|
|
import pollToPromise from "./pollToPromise.js";
|
|
|
|
function waitForLoaderProcess(loader, scene) {
|
|
return pollToPromise(function () {
|
|
if (loader.isDestroyed()) {
|
|
return true;
|
|
}
|
|
|
|
return loaderProcess(loader, scene);
|
|
});
|
|
}
|
|
|
|
export default waitForLoaderProcess;
|