Hi
Since coroutine is a good way to handle IO calls, I like to use it to deal with IO,WWW etc.
Now problem comes, is that safe?
Some says it’s no big deal because it’s a simulated multi-thread thing, so it would not cause real multi-thread problems like we met, just use it like a normal call. And some says it’s extremely dangerous if we misuse it, that will lead our code acts weird and hard to debug.
IEnumerator Start(){
yield return StartCoroutine(func1);
yield return StartCoroutine(func2);
yield return StartCoroutine(func3);
}
IEnumerator func1(){
if(something)
yield return StartCoroutine(func4);
yield return StartCoroutine(func5);
}
//etc