Skip to content

Instantly share code, notes, and snippets.

@andrewsmedina
Created November 21, 2012 23:44
Show Gist options
  • Save andrewsmedina/4128588 to your computer and use it in GitHub Desktop.
Save andrewsmedina/4128588 to your computer and use it in GitHub Desktop.
futures2
from concurrent.futures import ThreadPoolExecutor
with ThreadPoolExecutor(max_workers=1) as executor:
future = executor.submit(pow, 323, 1235)
print(future.result())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment