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


Constructor

new SharedDownloadTask( leader: BGE.DownloadTask, loader: BGE.AssetLoader, options: BGE.DownloadOptions, ): SharedDownloadTask

Parameters


Instance Methods

step(budgetMs: integer): boolean

Parameters

  • budgetMs (integer)

Returns

  • boolean

abort(): void

Returns

  • void