summaryrefslogtreecommitdiff
path: root/lib/textui/progress.go
AgeCommit message (Collapse)Author
2023-07-22textui: Progress: Fix some subtle timing issuesLuke Shumaker
- Always flush the value from the *first* .Set - Don't bother calling time.Now() if we have a timestamp from the ticker - If ticks are delayed for whatever reason, don't let that trip the hang-detector - Have better error messages from the hang detector
2023-04-13Try to find misuses of textui.ProgressLuke Shumaker
- Add a runtime-check to Progress to notice if we deadlocked or forgot to call .Done(). - Add a runtime-check to Progress.Done() to panic if .Set() was never called (instead of the old behavior of deadlocking). - grep: Use `defer` when possible, to help remember to call .Done(). - grep: Always either call .Set() right away, or right before calling .Done().
2023-01-30Split lib/containers.Sync* to git.lukeshu.com/go/typedsyncLuke Shumaker
2023-01-25containers: Add SyncValue and SyncPool typesLuke Shumaker
2023-01-01lint: Turn on forcetypeassertLuke Shumaker
2023-01-01lint: Turn on containedctxLuke Shumaker
2022-12-20textui: Implement a reusable progress moduleLuke Shumaker
To replace all of the ad-hoc hacks