1.0.6 • Published 5 days ago

lia-stack v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days ago

LIA STACK

JavaScript/TypeScript library of Execute multiple asynchronous tasks and return synchronous results

install

npm install  lia-stack

use

import Stack from "lia-stack";
const start = async () => {
    let items = [{name: 'task1'},{name: 'task2'}];
    const result = await new Stack<{ name: string }>(
        (item, _index:number, resolve, reject) => {
            // do someting
            //resolve(result)
            //reject(error)
        }
    ).tasks(items).timeout(1000).exec();
    console.log('result',result)
}
start()
1.0.6

5 days ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago