MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stop

Function stop

src/utils/cronScheduler.ts:499–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497 enablePoll.unref?.()
498 },
499 stop() {
500 stopped = true
501 if (enablePoll) {
502 clearInterval(enablePoll)
503 enablePoll = null
504 }
505 if (checkTimer) {
506 clearInterval(checkTimer)
507 checkTimer = null
508 }
509 if (lockProbeTimer) {
510 clearInterval(lockProbeTimer)
511 lockProbeTimer = null
512 }
513 void watcher?.close()
514 watcher = null
515 if (isOwner) {
516 isOwner = false
517 void releaseSchedulerLock(lockOpts)
518 }
519 },
520 getNextFireTime() {
521 // nextFireAt uses Infinity for "never" (in-flight one-shots, bad cron
522 // strings). Filter those out so callers can distinguish "soon" from

Callers

nothing calls this directly

Calls 2

releaseSchedulerLockFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected