Closed pivodog closed 8 months ago
I am getting run time errors when creating a state machine inside of main but I don't when the state machines are created outside of main? How do you handle this issue?
broken example:
def main():
master = Master() slave = Slave() master.do_start() master.wait()
good example:
master = Master() slave = Slave()
#master = Master() #slave = Slave() master.do_start() master.wait()
I am getting run time errors when creating a state machine inside of main but I don't when the state machines are created outside of main? How do you handle this issue?
broken example:
create state machines
master = Master()
slave = Slave()
def main():
create state machines
good example:
create state machines
master = Master() slave = Slave()
def main():
create state machines