Skip to content

Instantly share code, notes, and snippets.

@zanker
Created October 21, 2017 20:05
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 zanker/a9cb5ba845b32fe76094619305e6324d to your computer and use it in GitHub Desktop.
Save zanker/a9cb5ba845b32fe76094619305e6324d to your computer and use it in GitHub Desktop.
# Thread 1
total = 0
loop do
total = total + 1
end
# Thread 2
response = HTTP.post("/users/create")
data = JSON.parse(response.body)
HTTP.post("/update-profile/#data['user_id']}")
render status: 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment