def __init__(self, actor, waker, fallback = False):
self.actor = actor
self.callback = ThreadFunction(self._callback, name="StateMachine")
def __init__(self, actor, waker, fallback = False):
self.actor = actor
self.callback = ThreadFunction(self._callback, name="StateMachine")