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

Method nextStatusPollDelay

tui/status.go:148–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (m statusModel) nextStatusPollDelay() time.Duration {
149 if len(m.instances) == 0 {
150 return nextEmptyPollDelay(m.emptyStartedAt)
151 }
152 if !m.transitionStartedAt.IsZero() {
153 return nextInstancePollDelay(time.Since(m.transitionStartedAt))
154 }
155 return 60 * time.Second
156}
157
158func tickAfter(delay time.Duration) tea.Cmd {
159 if delay < time.Second {

Callers 2

tickCmdMethod · 0.95

Calls 2

nextEmptyPollDelayFunction · 0.85
nextInstancePollDelayFunction · 0.85

Tested by

no test coverage detected