GO-QUEUE@v1.1.1: Priority-based task queue with automatic timeout promotion

Published: (January 1, 2026 at 01:15 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

cover

REFACTOR

  • Changed PresetConfig.Priority from string to Priority type.
  • Changed WithRetry parameter from *int to variadic ...int, supporting invocation without arguments.

UPDATE

  • Improved timeout calculation logic, now directly uses time.Duration operations.
  • Updated priority upgrade logic to use new priority constants instead of strings.

PERF

  • Added taskHeap capacity reduction mechanism: when usage drops below 1/4 of capacity, it automatically shrinks to half (minimum retained is 16).

REMOVE

  • Removed getPresetPriority function.
  • Set old[n-1] = nil in Pop() to avoid memory leaks.

©️ 2025 邱敬幃 Pardn Chiu

Back to Blog

Related posts

Read more »