Socket
Socket
Sign inDemoInstall

persian-ts

Package Overview
Dependencies
464
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    persian-ts

Variety of Persian tools, all gathered in one place


Version published
Maintainers
1
Created

Readme

Source

Task repeater

Version Documentation Maintenance License: MIT License: MIT

Variety of Persian tools, all gathered in one place

Install

yarn install persian-ts

Usage

import TaskRepeater from "task-repeater";

const job1 = TaskRepeater()
  .do(() => {})
  .every(1000)
  .start();

const job2 = TaskRepeater()
  .do((itteration) => console.log(`itteration No.${itteration} ...`))
  .do(() => {})
  .finally((itterationsDone) =>
    console.log(`tasks done. ${itterationsDone} itterations were completed.`)
  )
  .for(5)
  .every(2_000)
  .delay(1_000)
  .start();

job1.stop();
job1.reset();

Author

👤 Omid Astaraki omid.ocean@gmail.com

Credits

this package is based on Repeatr library developed by @theshem.

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Omid Astaraki omid.ocean@gmail.com.
This project is MIT licensed.

Keywords

FAQs

Last updated on 29 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc