Pause execution of function until next frame

It would be great if there would be a away of stalling the execution of a function until the next frame.
I know that there are workarounds to that using the run-method or the executeDAT.

But if also often use the chooseFile method, which does exactly this. It opens a dialog, pauses the execution of the method calling that function and then resumes execution after a file got selected.
So, would it be possible to implement a system like this to be usable for us?

1 Like

yielding in a function means to let it immediately return the result of what has been executed so far, before the function is finished, which is sort of the opposite of delaying - I think you mean delaying?

1 Like

Yes, that is correct. Fixed it :slight_smile: