MCPcopy Create free account
hub / github.com/microsoft/typescript-go / RunLoop

Method RunLoop

internal/execute/watchmanager/watchmanager.go:331–341  ·  view source on GitHub ↗
(ctx context.Context, doCycle func())

Source from the content-addressed store, hash-verified

329}
330
331func (wm *WatchManager) RunLoop(ctx context.Context, doCycle func()) {
332 for {
333 select {
334 case <-ctx.Done():
335 wm.CloseAllWatches()
336 return
337 case <-wm.doCycleCh:
338 doCycle()
339 }
340 }
341}

Callers 1

startMethod · 0.80

Calls 1

CloseAllWatchesMethod · 0.95

Tested by

no test coverage detected