Problem: There is a potential deadlock on that the user sent a command to spawn a new SMIO, but the SMIO itself sends a message this loop. As the loop is synchronous, processing one message at a time, this will deadlock.
Solution: Separate the user task from the payload task with two actors
Problem: There is a potential deadlock on that the user sent a command to spawn a new SMIO, but the SMIO itself sends a message this loop. As the loop is synchronous, processing one message at a time, this will deadlock.
Solution: Separate the user task from the payload task with two actors