MCPcopy
hub / github.com/node-cron/node-cron / remove

Method remove

src/task-registry.ts:22–27  ·  view source on GitHub ↗
(task: ScheduledTask )

Source from the content-addressed store, hash-verified

20 }
21
22 remove(task: ScheduledTask ){
23 if(this.has(task.id)){
24 task?.destroy();
25 tasks.delete(task.id);
26 }
27 }
28
29 all(): typeof tasks {
30 return tasks;

Callers 3

addMethod · 0.95
killAllMethod · 0.95

Calls 2

hasMethod · 0.95
destroyMethod · 0.65

Tested by

no test coverage detected