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.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 day ago –
Tools for package owners.