<filename>function_thread.py<gh_stars>1-10
import threading


class FunctionThread(threading.Thread):
	def __init__(self, function_name):
		threading.Thread.__init__(self)
		self.function_name = function_name

	def run(self):
		self.function_name()

<filename>function_thread.py<gh_stars>1-10
import threading


class FunctionThread(threading.Thread):
	def __init__(self, function_name):
		threading.Thread.__init__(self)
		self.function_name = function_name

	def run(self):
		self.function_name()
