Skip to content

v0.2.0 – Context-Aware Worker Pool & Graceful Shutdown

Latest
Compare
Choose a tag to compare
@qcserestipy qcserestipy released this 21 May 19:45
4c6ab9d

This release adds full context-cancellation support across the WorkerPoolExecutor, enabling timeouts and clean interrupt handling.

🚀 Highlights

  • Context-Aware Dispatch & Workers
    Task dispatch, worker loops, and result collection are all now guarded with select on ctx.Done(), so cancellations and deadlines propagate immediately.

  • Graceful Shutdown
    Producer, workers, and collector all exit cleanly on context cancellation—no goroutine leaks or deadlocks.

  • Error Propagation
    Run returns context.Canceled or context.DeadlineExceeded when aborted, allowing callers to handle timeouts or interrupts.

  • Documentation Updates

    • Expanded README with a Quick Start example using signal.NotifyContext for Ctrl+C support.
    • Clarified best practices for preserving task order and adding cancellation checks.

Thank you for using GoHPC—enjoy safer, more responsive parallel execution!

Full Changelog: v0.1.0...v0.2.0