mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
Loader signature changes from func() (*T, error) to func(context.Context) (*T, error). Set.Load(ctx) already accepts a ctx; it now flows through reload() into the loader so long-running parses or downloads can honor ctx.Err() for graceful shutdown. check-ip's loaders don't consume ctx yet (ipcohort/geoip are in-memory and fast), but the hook is in place for future work. BREAKING: dataset.Add and dataset.AddInitial signatures changed.