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);
console.log(“isrotatefalse”);
yield this.isRotateScale = false;
}
}

I want to do something like 

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

Is this possible?

[Original Post on Discord](https://discord.com/channels/717429793926283276/1088129012641054822)

*by user 103054507105067008*

just use this.stopCoroutine(myCoroutine) on a component