0.1.1 • Published 8 years ago

promise-with-queue v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

QueuePro

Execute a function queue to receive value passed in resolving of the last call function.

You can override the default Promise or use a unique variable for this module. In any of the options you will have all the other standard Promise methods available.

Use

var queue = require("queuepro")

var func = queue([
    new Promise((resolve, reject) => { resolve(1) }),
    data => new Promise((resolve, reject) => { 
        setTimeout(() => {
            resolve(--data)
        }, 3000) 
    }),
    data => new Promise((resolve, reject) => { resolve(++data) }),
])

func.then(data => console.log(data), err => console.error(err))
0.1.1

8 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago