MCPcopy Index your code
hub / github.com/node-schedule/node-schedule / runOnDate

Function runOnDate

lib/Invocation.js:220–230  ·  view source on GitHub ↗
(date, job)

Source from the content-addressed store, hash-verified

218
219/* Date-based scheduler */
220function runOnDate(date, job) {
221 const now = Date.now();
222 const then = date.getTime();
223
224 return lt.setTimeout(function() {
225 if (then > Date.now())
226 runOnDate(date, job);
227 else
228 job();
229 }, (then < now ? 0 : then - now));
230}
231
232function scheduleInvocation(invocation) {
233 sorted.add(invocations, invocation, sorter);

Callers 1

prepareNextInvocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…