Repository navigation
π§ͺ Added Testing + Minor fixes v1.0.2
Fixes
- Modified Async and Sync pool to public
- Also modified visibility of Async and Sync pool from inside HybridPool
- TaskInfo properties are now read only
- TaskItem now accept only not null Func or Action
- Changed visibility of hooks to private
Test Coverage
- β Factory Methods - Pool creation with different configurations
- β Async Task Execution - Task enqueueing and execution
- β Sync Action Execution - Action enqueueing and execution
- β Pending Work Count - Queue monitoring and statistics
- β Elastic Workers - Dynamic worker management
- β Callback System - Lifecycle event handling
- β Concurrent Execution - Multi-threaded task processing
- β Weight Priority - Task prioritization system
- β Resource Management - Proper disposal and cleanup
- β Edge Cases - Error handling and boundary conditions
- β Options Validation - Configuration parameter validation
- β TaskInfo & TaskItem - Data structure functionality
Running Tests
cd Tests
dotnet test --verbosity normalTest-Driven Development
The test suite ensures:
- Correctness of the hybrid pool logic
- Thread safety in concurrent scenarios
- Resource management and proper cleanup
- Configuration validation and error handling
- Performance characteristics under load
What's Changed
- Unit tests by @Alessio-Marchese in #5
Full Changelog: v1.0.1...v1.0.2