package progresstracking
import "tailscale.com/util/progresstracking"
Package progresstracking provides wrappers around io.Reader and io.Writer that track progress.
Index ¶
Functions ¶
func NewReader ¶
func NewReader(r io.Reader, interval time.Duration, onProgress func(totalRead int, err error)) io.Reader
NewReader wraps the given Reader with a progress tracking Reader that reports progress at the following points:
- First read - Every read spaced at least interval since the prior read - Last read
Source Files ¶
progresstracking.go
- Version
- v1.86.4 (latest)
- Published
- Aug 7, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 9 hours ago –
Tools for package owners.