title: Trying to achieve asynchronous read calls on oData in SAPUI5
body: <p>I am trying to achieve the asynchronous function calls for reading the odata in SAPUI5.</p>
  
  <p>here is a example:</p>
  
  <pre><code>    this.odataModel = new sap.ui.model.odata.ODataModel(oDataUrl, true, 'user', 'pwd');
     /* data retrieving time 5sec */
      function read1(){
        this.odataModel.read('entity-url1',null, null, true, function(data){
         console.log('success');
          return data;
        },
        function(){ console.log('error'); });
      }
         /* data retrieving time 10sec */
      function read2(){
        this.odataModel.read('entity-url2',null, null, true, function(data){
         console.log('success');
         return data;
        },
        function(){ console.log('error'); });
      }
  
     /* data retrieving time 10sec */
      function read3(){
        this.odataModel.read('entity-ur3',null, null, true, function(data){
         console.log('success');
         return data;
        },
        function(){ console.log('error'); });
      }
  /* function calls */
   var d1 = read1(); 
   var d2 = read2();
   var d3 = read3();
  </code></pre>
  
  <p>after this call i am trying to get the data from read3 function i am getting empty data. becuse of execution time.</p>
  
  <p>How can i wait for until execution is completed. </p>