diff --git a/src/task-controls.md b/src/task-controls.md index f415d6c..bcf7be8 100644 --- a/src/task-controls.md +++ b/src/task-controls.md @@ -11,9 +11,6 @@ This function returns a `ScheduledTask` instance, which provides a consistent in const task = cron.schedule('* * * * *', () = > { // }, { nOoverlap: true }); -const task = cron.schedule('* * * * *', () => { - // your task logic here -}, { scheduled: false }); await task.getStatus(); // 'stopped' @@ -140,4 +137,4 @@ Removes a previously registered event listener. ### `once(event: TaskEvent, fn: (context: TaskContext) => void | Promise): void` Subscribes to an event once. The callback is automatically removed after the first invocation. - - Useful for temporary hooks or one-time monitoring. \ No newline at end of file + - Useful for temporary hooks or one-time monitoring.