Problem with signal looping

It should emit in-order of the for loop. If your signal is not deferred then any connected functions will run immediately when emitted.

Make sure to format your code pastes