lindeloev/psychopy — comment on commit 3dd69882d6312998da11246bc7a93b297e5e984a
File:  line 0
By peircej:

The advantage of the core.wait is that it's fairly explicit that nothing else will happen in the meantime. I think a function like this will look to the user as though the script will continue (and then it would certainly be very handy).

e.g. I can imagine people trying to do this:
port.setData(3, 1.0)
while t<1.0:
stim.draw()
win.flip()

They would think that this will cause the pin to be high for the duration that the stim was drawn but actually it will delay the stim for 1s.

I guess potentially we can do too much for the user, and stop them understanding what's really happening? But it's a balance.