How to define coroutine as a variable so that it can be stopped directly?

Say I have a coroutine like```
*WaitThenReset() {
while (true) {
yield WaitForSeconds(5);
yield this.isRotateScale = false;

I want to do something like 

if(this.customroutine != null)
this.customroutine = StartCoroutine(WaitThenReset());

Is this possible?

[Original Post on Discord](

*by user 103054507105067008*

just use this.stopCoroutine(myCoroutine) on a component