@qubeekio/minimum

1.2.0 • Public • Published

Minimum

Helper function, that helps to delay promise execution. Just pass Promise and delay and work like with common functions, for example, axios.

Install

$ npm install @qubeekio/minimum

Usage

// Would be executed after 300 milliseconds.

await Minimum(this.$axios.$get('/api'), 300).then((res) => {
  this.items = res.options
}).catch((err) => {
  this.isLoading = false
})

Package Sidebar

Install

npm i @qubeekio/minimum

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

3.71 kB

Total Files

6

Last publish

Collaborators

  • shek.maxim