UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

19 lines (18 loc) • 489 B
module.exports = (() => { if(!global.scheduledTasks){ global.scheduledTasks = new Map(); } return { save: (task) => { if(!task.options){ const uuid = require('uuid'); task.options = {}; task.options.name = uuid.v4(); } global.scheduledTasks.set(task.options.name, task); }, getTasks: () => { return global.scheduledTasks; } }; })();