Skip to content

AlexSergey/async-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async Loop

Async loop and inverse async loop

import { asyncLoop, inverseAsyncLoop } from '@alexsergey/async-loop';

asyncLoop(items, (item, loop) => {
    //.. async logic
    loop.iteration() // return index of array iteration
    loop.next() // next iteration
    loop.break() // cancel loop
}, () => {
    // it calls after all iterations
})

About

Async loop and inverse async loop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors