Resource

open class Resource<T : Any>(val resources: Resources, val name: String, val cache: ResourceCache, gen: suspend Resources.() -> T) : Resourceable<T>

Constructors

Link copied to clipboard
constructor(resources: Resources, name: String, cache: ResourceCache, gen: suspend Resources.() -> T)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onGen: () -> Unit?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun get(): T
Link copied to clipboard
fun getDeferred(): Deferred<T>
Link copied to clipboard
open override fun getOrNull(): T?
Link copied to clipboard
suspend fun preload(): T
Link copied to clipboard
Link copied to clipboard
fun unload()