If the source file contains errors, namespace switch will fail. Subsequent submission of eval(s) would need to wait for the msgloop to pick up the Exception, otherwise they will be considered to be from the same batch of erroneous submitted source.
This sleep() should not be repeated for each eval, unless the user switch the namespace. As such, I added the check to reduce the latency.
If the source file contains errors, namespace switch will fail. Subsequent submission of eval(s) would need to wait for the msgloop to pick up the Exception, otherwise they will be considered to be from the same batch of erroneous submitted source.
This sleep() should not be repeated for each eval, unless the user switch the namespace. As such, I added the check to reduce the latency.