Logo GenPRES

LoadEngine Type

Resolves a resource on its first request, after the resources it depends on, and caches the value. Collects the warnings of every loader. Raises ResourceLoadError for a loader error, a cyclic dependency or a resource that is not registered.

Constructors

Constructor Description

LoadEngine(registry)

Full Usage: LoadEngine(registry)

Parameters:
Returns: LoadEngine
registry : ResourceRegistry
Returns: LoadEngine

Instance members

Instance member Description

this.ForceAll

Full Usage: this.ForceAll

Resolves every registered resource.

this.Resolve

Full Usage: this.Resolve

Parameters:
Returns: 'T
Type parameters: 'T

Resolves one resource at the type of its key, from the cache after the first time.

key : ResourceKey<'T>
Returns: 'T

this.Resolved

Full Usage: this.Resolved

Returns: Map<string, obj>
Returns: Map<string, obj>

this.Warnings

Full Usage: this.Warnings

Returns: Message list
Returns: Message list

Type something to start searching.