Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

aleclarson/loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loader v2.2.0 stable

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.

Properties

  • isLoading: Boolean { get }

Events

  • didLoad(result: Any)
  • didAbort()
  • didFail(error: Error)

Methods

  • load(args...) -> Promise

  • abort()

  • unload()

TODO: Write tests!?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published