An asynchronous Function
that blocks calls when loading.
The Loader
class is useful when you don't need "lazy loading" or "unique keys".
Use LazyLoader
for result caching.
Use ListLoader
for unique key validation.
isLoading: Boolean { get }
didLoad(result: Any)
didAbort()
didFail(error: Error)
-
load(args...) -> Promise
-
abort()
-
unload()
TODO: Write tests!?