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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.10
2.0.20
2.0.10
2.0.00
1.0.10
1.0.00
0.1.34
0.1.21
0.1.10
0.1.00
0.0.30
0.0.20

Package Sidebar

Install

npm i detain

Weekly Downloads

3

Version

3.0.1

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • yorkblansh