submitconfirm

package
v0.0.274 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package submitconfirm drives transcript-backed terminal submission retries.

Index

Constants

View Source
const (
	Interval = time.Second
	Budget   = 2 * time.Minute
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, loop Loop) bool

Run reports whether the prompt landed before the budget elapsed. Cancellation or an Enter error stops the loop without sending more keys.

Types

type Loop

type Loop struct {
	Interval, Budget time.Duration
	After            func(time.Duration) <-chan time.Time
	Landed           func() bool
	Enter            func() error
}

Loop checks runner-specific evidence before sending any extra Enter. A nil Enter observes the transcript without sending keys.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL