Changed
- Improved worker pattern implementation:
- Added state machine (CREATED, STARTING, STARTED, STOPPING, STOPPED)
- Added thread-safe task queue with pre-loop buffering
- Replaced run() method with started signal listener pattern
- Enhanced worker lifecycle management and cleanup
- Added detailed debug logging for worker operations
- Updated documentation and examples:
- Added complete runnable worker examples
- Updated API documentation to reflect new worker pattern
- Improved README examples with async context