1.0.2 • Published 7 years ago

priority-promise v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 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

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago