Skip to content

Instantly share code, notes, and snippets.

View almoorthi's full-sized avatar

Moorthi almoorthi

View GitHub Profile
"""
Non blocking example:
1. Browse to `localhost:8000/sleep1`
2. Browse to `localhost:8000/`
You'll observe that the first call will take 5 seconds and the second call will be executed immediately.
Blocking example:
1. Browse to `localhost:8000/sleep2`
2. Browse to `localhost:8000/`