Example #1
0
class HandParserSingleThread:

    def __init__(self, buffer: list):
        self.buffer = buffer
        self.hand = Hand()

    def run(self):
        self.hand.parse(self.buffer)
Example #2
0
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)