MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / nextEmptyPollDelay

Function nextEmptyPollDelay

tui/status.go:141–146  ·  view source on GitHub ↗
(emptyStartedAt time.Time)

Source from the content-addressed store, hash-verified

139}
140
141func nextEmptyPollDelay(emptyStartedAt time.Time) time.Duration {
142 if emptyStartedAt.IsZero() || time.Since(emptyStartedAt) < emptyPollBackoffAfter {
143 return emptyPollInterval
144 }
145 return emptyPollBackoffInterval
146}
147
148func (m statusModel) nextStatusPollDelay() time.Duration {
149 if len(m.instances) == 0 {

Callers 3

nextStatusPollDelayMethod · 0.85
ViewMethod · 0.85

Calls

no outgoing calls