Instance Method

cancelLoading()

Cancels the loading of all values for all observers.

Declaration

func cancelLoading()

Discussion

This method explicitly cancels any pending invocations of the asset’s loadValuesAsynchronously(forKeys:completionHandler:) method. This method should only be used when you are completely done using an asset and you want to terminate any outstanding requests. Deallocation of an instance of the asset implicitly invokes this method if any loading requests are still pending.