You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive timeout support to queue implementations
- Add timeout parameter to Async::Queue#dequeue and #pop methods
- Add timeout parameter to Async::PriorityQueue#dequeue and #pop methods
- Implement timeout: 0 for non-blocking operations
- Create AQueueWithTimeout shared fixture for consistent timeout testing
- Update both queue test files to use shared timeout behavior
- Add closed? method to PriorityQueue for full queue interface compatibility
- All timeout functionality respects priority ordering in PriorityQueue
- 55 tests passing for PriorityQueue, 28 tests passing for Queue
This provides the foundation for implementing try_acquire functionality
using timeout: 0 for non-blocking resource acquisition attempts.
0 commit comments