MCPcopy Create free account
hub / github.com/garrytan/gstack / resetIdleTimer

Function resetIdleTimer

browse/src/server.ts:629–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

627let lastActivity = Date.now();
628
629function resetIdleTimer() {
630 lastActivity = Date.now();
631}
632
633// Named for behavioral testing via __testInternals__. The factory tests in
634// server-factory.test.ts call this directly so the idle-shutdown path can be

Callers 1

makeFetchHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected