MCPcopy Create free account
hub / github.com/codeaashu/claude-code / subscribe

Function subscribe

src/ink/components/ClockContext.tsx:41–48  ·  view source on GitHub ↗
(onChange, keepAlive)

Source from the content-addressed store, hash-verified

39 }
40 return {
41 subscribe(onChange, keepAlive) {
42 subscribers.set(onChange, keepAlive);
43 updateInterval();
44 return () => {
45 subscribers.delete(onChange);
46 updateInterval();
47 };
48 },
49 now() {
50 if (startTime === 0) {
51 startTime = Date.now();

Callers

nothing calls this directly

Calls 3

updateIntervalFunction · 0.85
deleteMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected