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

Method on

src/tasks/inline-scheduled-task.ts:212–214  ·  view source on GitHub ↗
(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void)

Source from the content-addressed store, hash-verified

210 }
211
212 on(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void {
213 this.emitter.on(event, fun);
214 }
215
216 off(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void {
217 this.emitter.off(event, fun);

Callers 1

startDaemonFunction · 0.95

Calls 1

onMethod · 0.65

Tested by

no test coverage detected