Skip to content

Instantly share code, notes, and snippets.

@antunesleo
Created January 19, 2020 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antunesleo/8020a8a44dd4ef31dbe353222d0b38d4 to your computer and use it in GitHub Desktop.
Save antunesleo/8020a8a44dd4ef31dbe353222d0b38d4 to your computer and use it in GitHub Desktop.
validate_user(user) # First validate user, then jump to next line
save_db_user(user) # First save_db_user, them jump to next line
start_to_send_confirmation_email(user) # We don't want to wait the email be sent to jump to next line, here we should develop some async stuff
return user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment