Tasknization
Define a function to execute after completing token-defined tasks.
Getting Started
Insert the js file
npm install tasknization
and use!
// Define a function to execute when completing tasks. { console; } tasknization; // Set the execution tokens tasknization; tasknization; tasknization; // Complete the tasks tasknizationcomplete'Task2'; tasknizationcomplete'Task3'; tasknizationcomplete'Task1'; <~ at this time the console prints "Done!"
Functions supported:
- add(tasksName): Define a task.
- remove(taskName): Remove the registered task by task name.
- complete(taskName): Set task as completed.
- clearAll(): Remove all tasks registered.
- pendingTasks(): Return array of pending tasks registered.
- setFinishTask(task): Define a function (task) to execute when completing tasks.
- createInstance(): Defines an independent instance of Tasknization.
- isComplete(): Check that all tasks have been completed.
- isFinished(): Informs if the defined finish function has been executed.
Authors
- Jeferson Mota
License
MIT