Files
Zos/Skills/@be/node_modules/jibo-loader/lib/docs/AssetToken.js

58 lines
1.3 KiB
JavaScript

/**
* Class that represents a loaded or loading item, enabling strict unloading policies.
* @class AssetToken
* @memberof jibo.loader
*/
/**
* Name of the named cache that this load was attached to.
* @type {string}
* @name jibo.loader.AssetToken#cache
* @readonly
*/
/**
* Unique id within the named cache that this load was attached to.
* @type {string}
* @name jibo.loader.AssetToken#id
* @readonly
*/
/**
* Globally unique key used to cache this load.
* @type {string}
* @name jibo.loader.AssetToken#key
* @readonly
*/
/**
* The AssetCache that this token will use to unload a loaded asset.
* @private
*/
/**
* The loader that this token will use to cancel a load.
* @private
*/
/**
* If this token is valid. Tokens that have been unloaded are invalid.
* @type {boolean}
* @name jibo.loader.AssetToken#isValid
* @readonly
*/
/**
* @private
*/
/**
* Cancels any ongoing load (if still being loaded) and removes this load from the cache.
* @method jibo.loader.AssetToken#unload
*/
/**
* Alias for unload()
* @method jibo.loader.AssetToken#cancel
* @see jibo.loader.AssetToken#unload
*/