class HandParserSingleThread: def __init__(self, buffer: list): self.buffer = buffer self.hand = Hand() def run(self): self.hand.parse(self.buffer)
class HandParser(Thread): def __init__(self, buffer: list): Thread.__init__(self) self.buffer = buffer self.hand = Hand() def run(self): self.hand.parse(self.buffer)