1.0.7 • Published 2 years ago

lia-stack v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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();
}
start()
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago