MCPcopy Index your code
hub / github.com/coder/coder / poll

Method poll

coderd/provisionerdserver/acquirer.go:485–496  ·  view source on GitHub ↗
(dur time.Duration)

Source from the content-addressed store, hash-verified

483}
484
485func (d domain) poll(dur time.Duration) {
486 tkr := time.NewTicker(dur)
487 defer tkr.Stop()
488 for {
489 select {
490 case <-d.ctx.Done():
491 return
492 case <-tkr.C:
493 d.a.clearOrPend(d)
494 }
495 }
496}

Callers 1

wantMethod · 0.45

Calls 3

clearOrPendMethod · 0.80
StopMethod · 0.65
DoneMethod · 0.45

Tested by

no test coverage detected