That is pseudo-code. Examine the code, apply the concept to your script.
The problem is just as he said, you’re actually running the method when you’re adding the listening, so just make a new method that does nothing more than StartCoroutine() and add the subscriber to that method instead of the coroutine directly.
If you get errors, debug them as usual. (such as using yield return commands properly)