-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve worker pattern implementation (#13)
- Refactor worker pattern to use state machine (CREATED, STARTING, STARTED, STOPPING, STOPPED) - Add thread-safe task queue with pre-loop buffering - Improve worker lifecycle management with proper cleanup - Make worker state transitions more explicit and safer - Replace run() method with started signal listener pattern - Fix thread cleanup in tests - Add detailed debug logging for worker operations - Update examples Co-authored-by: San <san.tekart@gmail.com>
- Loading branch information
1 parent
68adcbb
commit 334d42a
Showing
23 changed files
with
1,039 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.