MCPcopy Index your code
hub / github.com/cli/cli / waitForOptions

Function waitForOptions

internal/prompter/huh_prompter_test.go:111–113  ·  view source on GitHub ↗

waitForOptions adds extra delay to let the bubbletea event loop settle after switching modes when no async search is triggered.

()

Source from the content-addressed store, hash-verified

109// waitForOptions adds extra delay to let the bubbletea event loop settle
110// after switching modes when no async search is triggered.
111func waitForOptions() interactionStep {
112 return interactionStep{bytes: nil, delay: 50 * time.Millisecond}
113}
114
115// waitForSearch returns an interactionStep that blocks until the field's
116// current async search completes. It wires a one-shot callback into the

Calls

no outgoing calls

Tested by

no test coverage detected