1.0.0 ā€¢ Published 3 years ago

persian-ts v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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.