Check out example codes for "stop specific coroutine unity". It will help you in understanding the concepts better.

Code Example 1

Coroutine co;  
// start the coroutine the usual way but store the Coroutine object that StartCoroutine returns. 
co = StartCoroutine(MyCoroutine());
// stop the coroutine
StopCoroutine(co);

Learn ReactJs, React Native from akashmittal.com