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