# delay-execution **Repository Path**: mirrors_LancerComet/delay-execution ## Basic Information - **Project Name**: delay-execution - **Description**: A simple defer-like tools. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # delay-execution A simple defer-like tools. ### Usage: ``` var newTask = new Delay( function () { setTimeout(function () { console.log("Task1: 300ms."); newTask.next(); }, 300)}, function () { setTimeout(function () { console.log("Task2: 10ms."); newTask.next(); }, 10)}, function () { setTimeout(function () { console.log("Task3: 720ms."); newTask.next(); }, 720)}, function () { setTimeout(function () { console.log("Task4: 40ms."); newTask.next(); }, 40)} ); newTask.done(function () { console.log("newTasks done!"); }); ```