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

Function onIdle

src/utils/teammate.ts:262–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260 let remaining = workingTaskIds.length
261
262 const onIdle = (): void => {
263 remaining--
264 if (remaining === 0) {
265 // biome-ignore lint/nursery/noFloatingPromises: resolve is a callback, not a Promise
266 resolve()
267 }
268 }
269
270 // Register callback on each working teammate
271 // Check current isIdle state to handle race where teammate became idle

Callers 1

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected