"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tasks = void 0;
class Tasks {
    tasks = [];
    push(...tasks) {
        this.tasks.push(...tasks);
    }
    async all() {
        await Promise.all(this.tasks.map((item) => item()));
    }
}
exports.Tasks = Tasks;
//# sourceMappingURL=tasks.js.map