1.0.2 • Published 8 years ago

priority-promise v1.0.2

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

priority-promise

Promise with Priority

Usage

import PriorityPromise from 'priority-promise';

let target = Promise.resolve();
new PriorityPromise(target)
  .then(()=>{
    console.log('Priority 0');
  }, null, 0)
  .then(()=>{
    console.log('Priority 1');
  }, null, 1)
  .then(()=>{
    console.log('Priority -1');
  }, null, -1);
// Priority 1
// Priority 0
// Priority -1
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago