0.0.6 • Published 6 years ago

delay-promise-func v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

delay-promise-func

Function that returns promise that wait specified milliseconds and then call specified function.

Coverage Status Build Status

Example

const delayed = require('delay-promise-func');

const p = (url) => require('axios').get(url);

const delayed_p = delayed(p, 500);

delayed_p(url).then(res => {
    //will call axios's get() after 500ms of waiting
})
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago