Coroutine

β€’
You use the yield statement in an iterator to provide the next value or signal the end of an iteration.
β€’
코루틴은 μˆœμ„œκ°€ μžˆλŠ” μž‘μ—…μ„ 맀 ν”„λ ˆμž„(λ˜λŠ” μ§€μ •λœ μ‹œκ°„) μ°¨λ‘€λŒ€λ‘œ μˆ˜ν–‰ν•˜κ³  μ’…λ£Œλ˜λŠ” ν”„λ‘œμ„ΈμŠ€
β€’
코루틴은 μŠ€λ ˆλ“œκ°€ μ•„λ‹˜ (λ°±μ—”λ“œμ—μ„œ μ‹€ν–‰ν•˜λ‹€κ°€ λŒμ•„μ˜€λŠ”κ²ƒμ΄ μ•„λ‹˜! λ§€ν”„λ ˆμž„ μ‹€ν–‰λ˜λ―€λ‘œ update 와 κ°™λ‹€.)
β€’
μŠ€λ ˆλ“œ μ‚¬μš©ν•˜κ³  μ‹ΆμœΌλ©΄ unity job μ‹œμŠ€ν…œμ„ μ‚¬μš©ν•˜λŠ”κ²ƒμ„ μΆ”μ²œ

References