import time
import threading


class TimeoutThread(threading.Thread):

    def __init__(self, interval, callback):
        self._interval = interval
        self._callback = callback
        threading.Thread.__init__(self)
        self.daemon = True
        self.start()

    def run(self):
        time.sleep(self._interval)
        self._callback()

03818918116e1e0036de26c8ec8801bff3a7cf30
<mask token>


class TimeoutThread(threading.Thread):
    <mask token>
    <mask token>

<mask token>


class TimeoutThread(threading.Thread):

    def __init__(self, interval, callback):
        self._interval = interval
        self._callback = callback
        threading.Thread.__init__(self)
        self.daemon = True
        self.start()
    <mask token>

<mask token>


class TimeoutThread(threading.Thread):

    def __init__(self, interval, callback):
        self._interval = interval
        self._callback = callback
        threading.Thread.__init__(self)
        self.daemon = True
        self.start()

    def run(self):
        time.sleep(self._interval)
        self._callback()

import time
import threading


class TimeoutThread(threading.Thread):

    def __init__(self, interval, callback):
        self._interval = interval
        self._callback = callback
        threading.Thread.__init__(self)
        self.daemon = True
        self.start()

    def run(self):
        time.sleep(self._interval)
        self._callback()
