export default class QueueManager {
    constructor() {
        this.tasks = [];
    }
    static sharedInstance() {
        if (!QueueManager.instance) {
            QueueManager.instance = new QueueManager();
        }
        return QueueManager.instance;
    }
    enqueue(command) {
        this.tasks.push(command);
    }
    tick() {
        if (this.tasks.length >= 1) {
            var nextTask = this.tasks.splice(0);
            if (nextTask) {
                console.log(nextTask);
            }
        }
    }
}

//# sourceMappingURL=../../../../_SBUNK_BPDebug/fs_sbunk/fs/queuemanager.js.map
