Created
December 22, 2014 13:14
-
-
Save gmodecorp/655f267ecf18b5a414ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 以前にStartCorotuineで生成した、既に実行が開始しているコルーチン | |
Coroutine anotherCoroutine; | |
IEnumerator A() | |
{ | |
// コルーチンの実行権がanotherCoroutineに移る | |
yield return anotherCoroutine; | |
} | |
IEnumerator B() | |
{ | |
// anotherCoroutineは既にAで使われているので、例外が発生する。 | |
yield return anotherCoroutine; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment