Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Python thread
from threading import Thread
class APIThread(Thread)
def __init__(self, data): = data
def run(self)
# call external api
# process return value
# create new thread to call api
def make_thread(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment