@qubeekio/minimum

Helper function, that helps to delay promise execution


Keywords
promise, resolve, delay, defer, wait, stall, timeout, settimeout, event, loop, next, tick, async, await, promises, bluebird
License
MIT
Install
npm install @qubeekio/minimum@1.1.4

Documentation

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
})