Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
The close() method of the ImageDecoder interface ends all pending work and releases system resources.
close()None.
None (undefined).
The following example closes the ImageDecoder.
imageDecoder.close();