Hi All,
Apologies if this is a really basic question or betrays a lack of understanding on my part.
I have a page where vtkXMLImageDataReader is used to load some data from the web. Using a sequence like this
var reader = new vtkXMLImageDataReader.newInstance({ fetchGzip: true });
reader.onModified(renderComponent);
reader.setUrl(dataUrl).then( () => reader.loadData() );
This works fine, but I want a way to cancel the reader promise, for example, if the user clicks away from the page and the component is no longer required. I tried calling a reader.delete() method, but vtkXMLImageDataReader does not seem to have this method.
Any help would be gratefully received.
Thanks