# pending v0.1.0: lean in-memory deferred task scheduler for Go
Hi everyone, I just released `pending` v0.1.0:
- GitHub: `https://github.com/kahoon/pending`
- Docs: `https://pkg.go.dev/github.com/kahoon/pending`
`pending` is a small in-memory scheduler for deferred tasks keyed by ID.
## Highlights
- Debounce by ID (rescheduling replaces prior task)
- Cancellation via `Cancel(id)`
- Graceful shutdown via `Shutdown(ctx)`
- Concurrency control with block/drop strategies
- Telemetry hooks for lifecycle events
- Pure stdlib (no external deps)
## Scope
`pending` is not a cron replacement; it is focused on in-process deferred task orchestration.
Feedback is very welcome, especially around API ergonomics and concurrency behavior.
pending v0.1.1 released: stats snapshot API + reliability improvements
Hi everyone, pending v0.1.1 is out:
- GitHub:
https://github.com/kahoon/pending - Docs:
https://pkg.go.dev/github.com/kahoon/pending - Release:
https://github.com/kahoon/pending/releases/tag/v0.1.1
What’s new
- Added
Stats()snapshot API:PendingRunningClosed
- Improved
OnExecutedtiming accuracy (duration measured immediately after task execution) - Hardened concurrency tests to reduce timing-related flakiness
- Added baseline benchmarks + README benchmark section
Reminder on scope
pending is a small in-process deferred task scheduler (ID-based debounce/cancel/shutdown), not a cron replacement.
Feedback is very welcome, especially on the stats API ergonomics and real-world usage patterns.