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

Function onError

src/scheduler/runner.test.ts:42–45  ·  view source on GitHub ↗
(date, error)

Source from the content-addressed store, hash-verified

40 throw new Error('fail!')
41 }, {
42 onError(date, error){
43 resolve(error);
44 runner.stop()
45 }
46 });
47 runner.start();
48 });

Callers 1

runAsyncFunction · 0.85

Calls 1

stopMethod · 0.65

Tested by

no test coverage detected