SharedDownloadTask
Extends: DownloadTask
A download of a URL that another task in the same AssetLoader is already downloading. It waits for that download and uses its file, rather than requesting the URL again. If that download is aborted, this one downloads the URL itself. Made by AssetLoader.getDownloadTask().
Properties
leader(BGE.DownloadTask) — The download this one is waiting for
Constructor
new SharedDownloadTask(
leader: BGE.DownloadTask,
loader: BGE.AssetLoader,
options: BGE.DownloadOptions,
): SharedDownloadTaskParameters
leader(BGE.DownloadTask)loader(BGE.AssetLoader)options(BGE.DownloadOptions)
Instance Methods
step(budgetMs: integer): boolean
Parameters
budgetMs(integer)
Returns
boolean
abort(): void
Returns
void