Skip to content
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

Self-call inside condition #6

Closed
pylover opened this issue Jul 22, 2021 · 0 comments
Closed

Self-call inside condition #6

pylover opened this issue Jul 22, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@pylover
Copy link
Owner

pylover commented Jul 22, 2021

diagram: Authentication
version: 1.0
author: pylover

sequence: Login

bob -> db: ensure()
  if: not db.is_connected
    db -> db: connect()
 DIAGRAM: Authentication                                                  
 author: pylover                                                          
 version: 1.0                                                             
                                                                          
 SEQUENCE: Login                                                          
                                                                          
 +-----+                            +-----+                               
 | bob |                            | db  |                               
 +-----+                            +-----+                               
    |                                  |                                  
    |~~~ensure()~~~~~~~~~~~~~~~~~~~~~~>|                                  
    |                                  |                                  
    |                               *******                               
    |                               * if not db.is_connected              
    |                               *******                               
    |                                  |                                  
    |                                  |~~~connect()~~~+                  
    |                                  |               |                  
    |                                  |<--------------+                  
    |                                  |                                  
    |                               *******                               
    |                               * end if                              
    |                               *******                               
    |                                  |                                  
    |<---------------------------------|                                  
    |                                  |                                  
 +-----+                            +-----+                               
 | bob |                            | db  |                               
 +-----+                            +-----+                               
                                                                          
@pylover pylover added the bug Something isn't working label Jul 22, 2021
@pylover pylover added this to the 0.1.0 milestone Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant