https://github.com/kbismark/utilities
Opinionated JavaScript Utilities
https://github.com/kbismark/utilities
Last synced: 23 days ago
JSON representation
Opinionated JavaScript Utilities
- Host: GitHub
- URL: https://github.com/kbismark/utilities
- Owner: KBismark
- Created: 2025-02-17T11:46:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-17T12:15:57.000Z (over 1 year ago)
- Last Synced: 2025-02-17T12:33:40.293Z (over 1 year ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# utilities
Opinionated JavaScript Utilities
## List
- [Batched Task Executer](https://github.com/KBismark/utilities/blob/master/src/batch_task_executer.ts) : Batches and executes similar tasks once for all.
> ```ts
> const performer = new BatchedTaskExecutor;
>
> const getUsers = async ()=>{
> try {
> return await performer.perfromTask('get_users', async () => [], {retries: 2, timeout: 1000});
> } catch (error) {
> return null
> }
> }
>
> app.get('/users', async (req, res)=>{
> const users = await getUsers();
> // rest of code here..
> })
>