detain
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

detain.js

Library brings serial delay for performing tasks on array of promises or regular items

Example

const array = await detain({
  array: ['1', 2, 8, 155];
  delayMs: 1000,
  each: (item) => asyncFunction(item),
  onEach: (resolvedValue) => {
    console.log(resolvedValue)
  },
})

Readme

Keywords

none

Package Sidebar

Install

npm i detain

Weekly Downloads

5

Version

3.0.1

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • yorkblansh