Skip to content

Instantly share code, notes, and snippets.

@badlydrawnrod
badlydrawnrod / hello.py
Last active December 25, 2015 16:09 — forked from simplyvikram/tornado_long_blocking.py
Fork of simplyvikram's non-blocking Tornado gist, modified to show how to use the ThreadPoolExecutor.
#!/usr/bin/env python
import tornado.web
import tornado.gen
import time
from functools import partial
import os
from concurrent.futures import ThreadPoolExecutor