Waiting For An App42 Function To Finish In Unity

0 votes

This may be a simple question, but I was wondering if there's a way to wait for a function to finish successfully (or unsuccessfully) complete before moving on to the next line of code. 

For instance, in psuedocode, I want to do something like:

 

yield createuser(parameters);

do stuff

 

However, when I'm using these functions, it'll go from createuser to 'do stuff' before createuser is finished.  I chain functions within the callbacks right now, but I feel that's messy.  Any suggestions?

 

closed with the note: I ended up using a bool flag in the callback function.  Simple enough.  Thank you for your time.
asked Dec 22, 2015 in App42 Cloud API-BaaS by null (23 points)
closed Dec 22, 2015 by null
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...