Skip to content

Commit

Permalink
Merge pull request #56 from alphatwirl/dev
Browse files Browse the repository at this point in the history
Update the state diagram in docstring
  • Loading branch information
TaiSakuma authored Jun 30, 2024
2 parents cd3d92b + a477058 commit b03b7d7
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions atpbar/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,27 @@
State Diagram:
.----------------------------------------------.
| |
| .-------------. |
| .--------->| Initial | |
| | '-------------' |
| | | prepare_reporter() |
| shutdown() | flush() |
| | v |
| | .-------------. |
| '----------| Active |<---------. |
| '-------------' | |
| |on_yielded() | |
| | | |
| v on_resumed() |
| .-------------. | |
| | Yielded |----------' |
| '-------------' |
'----------------------------------------------'
| |
|--------------------------. |-------------.
register_reporter() | | disable() |
| | | |
v | v |
.-------------. .-------------. |
| Registered | | Disabled | |
'-------------' '-------------' |
| |
'---------------------------------------------'
.-------------. shutdown()
| Initial |<------------------*
'-------------'
| prepare_reporter()
| flush()
v
.-------------. on_resumed() .-------------.
| Active |<---------------->| Yielded |
'-------------' on_yielded() '-------------'
register_reporter() .-------------.
*----------------------->| Registered |
'-------------'
disable() .-------------.
*----------------------->| Disabled |
'-------------'
NOTE: In a forked sub-process, the state starts from the same state as the parent process.
'''


Expand Down

0 comments on commit b03b7d7

Please sign in to comment.