title: StartCoroutine and IEnumerator (Unity 3D)
body: <p>This is my code</p>
  
  <pre><code>public void myFuntion(){
       JsonFx.Json.JsonWriter writer =new JsonFx.Json.JsonWriter();
       string jsondata2=writer.Write(fps);
       WWWForm form = new WWWForm();
       form.AddField("facprodstrans", jsondata2);
       string url="127.0.0.1/few/get_trans.php"; 
       www = new WWW(url,form);
       StartCoroutine(WaitForRequest(www));
       print ("&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;"+fpts.time_remaining);
   }
   IEnumerator WaitForRequest(WWW www){ 
       yield return www;
       string facpdata = www.text;
       JsonFx.Json.JsonReader reader = new JsonFx.Json.JsonReader ();
       fpts = reader.Read&lt;FactoryProdTransS&gt; (facpdata);
       print("&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"+fpts.time_remaining);
   }  
  </code></pre>
  
  <p>The print statement in the function 'myFunction' executes before the print statement in the IEnumerator, due to which it prints the old value first and the updated value afterwards, can not figure out why.</p>