how to stop a coroutine unity csharp

Code Example - how to stop a coroutine unity csharp

                
                        IEnumerator co;
 
co = MyCoroutine(); // create an IEnumerator object
StartCoroutine(co); // start the coroutine
StopCoroutine(co); // stop it.