qyu
Version:
A general-purpose asynchronous job queue for Node.js
27 lines • 969 B
JavaScript
import { QyuBase } from './QyuBase.js';
export { QyuInvokable as default };
const QyuInvokable = class Qyu extends QyuBase {
constructor(opts = {}) {
super(opts);
const qyuAsAny = this;
const selfInvokableQyu = new Proxy(((input) => {
return qyuAsAny.add(input);
}), {
get: (_target, prop, _receiver) => {
return qyuAsAny[prop];
},
set: (_obj, prop, value) => {
qyuAsAny[prop] = value;
return true;
},
});
return selfInvokableQyu;
}
};
/*
TODOs:
- Go through entire `README.md`, most importantly probably convert all imports from `require`s to `import` statements
- Make all nullable numeric options to be defaulted to `Infinity` to normalize all operations on them and their type checks
- Make up and extract out subtypes of the QyuError for each possible error
*/
//# sourceMappingURL=Qyu.js.map