sekwah41 / spq

Simple Promise Queue
MIT License
0 stars 0 forks source link

Allow async functions to also be put on to the queue #58

Closed sekwah41 closed 1 year ago

sekwah41 commented 1 year ago

As the title states.

E.g. allow

QueuedPromise(async () => {
  return await stuff();
});
sekwah41 commented 1 year ago

For now any promise just doing .then(res).catch(rej) will handle it so its not much harder. but would be nice for chaining and larger things.