ResourceRegistry

ResourceRegistry keeps track of resources that have been loaded and are in the process of being loaded. The registry maintains only weak references and doesn't prevent resources from being collected.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Removes all cache entries.
Link copied to clipboard
Returns a future to a resource previously registered with the same id.
Link copied to clipboard
Polls for garbage collected objects and disposes associated data.
Link copied to clipboard
open fun register(id: Any, futureResource: CompletableFuture<T>)
Registers a future to a resource by an id.