Closed cqh963852 closed 1 year ago
Could you please just give quick example how to cancel the request with this setup?
import * as PIXI3D from "pixi3d/pixi7";
const controller = new AbortController();
const handler = setTimeout(() => {
controller.abort();
}, 10000);
PIXI3D.glTFAsset
.fromURL(
"https://raw.githubusercontent.com/jnsmalm/pixi3d-sandbox/master/assets/teapot/teapot.gltf",
{
controller,
}
)
.then(() => {
clearTimeout(handler);
});
Thanks for helping!
relate https://github.com/jnsmalm/pixi3d/issues/139