In processing 3
I have two call back functions, one to select an input file and the other to select an output file. In the setup function I want to call the input file select and then the output file select. But being callback functions they both appear at the same time.
So how can I wait in the setup function until each of these file dialogues has finished before proceeding. Searching around I saw something about a “promise”, is this the answer? If so how do I implement it?
Thanks for reading.