summaryrefslogtreecommitdiffstats
path: root/src/tasks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks.ts')
-rw-r--r--src/tasks.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tasks.ts b/src/tasks.ts
index 18b6fe8..1b0ce9b 100644
--- a/src/tasks.ts
+++ b/src/tasks.ts
@@ -12,3 +12,7 @@ export const addTask = (task: Task) => {
export const getTask = (): Task | undefined => {
return taskQueue.shift();
};
+
+export const numOfTasksInQueue = () => {
+ return taskQueue.length;
+};