-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User initiated pausing #16
Conversation
…ling the different types of txs appropriately.
…e in providing a callback to alert the user about pausing. Move queue_transaction to _Machine instead - more applicable there since internals of _Machine are used. Move exposed functions to their own section in _Machine.
…any processing for this execution round of the machine; reasses during next execution round.
Pause will cause the looping task to stop (sleep), and resume will cause the looping task to start (wake). Idle state itself does not need processing, just setting of the interval when it is transitioned into.
… a tx got queued, OR we are in pause and need to be woken up.
…aused; all is still fine.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
==========================================
+ Coverage 81.30% 82.90% +1.59%
==========================================
Files 13 13
Lines 920 971 +51
==========================================
+ Hits 748 805 +57
+ Misses 172 166 -6 ☔ View full report in Codecov by Sentry. |
Add tests for _wake.
…ove to the PAUSED state instead of waiting until next iteration of looping call.
4d55f76
to
5540405
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (still not able to provide good feedback)
Fixes #10 .