title: How to set setTimeout/Thread.sleep in newman
body: <p>How to set setTimeout/Thread.sleep in newman(postman's node module).</p>
  
  <p>I am using below function :</p>
  
  <pre><code>setTimeout(function(){ 
  
          console.log('sleep for ten min');
      }, 600000);
  </code></pre>
  
  <p>Above function works perfectly in collection runner of postman.</p>
  
  <p>But when I tried newman it is throwing error as</p>
  
  <blockquote>
    <p>'setTimeout is not available inside sandbox and has no side-effect.'</p>
  </blockquote>
  
  <p>I have found a similar thread like below:</p>
  
  <p><a href="https://github.com/postmanlabs/newman/issues/304" rel="nofollow noreferrer">https://github.com/postmanlabs/newman/issues/304</a></p>
  
  <p>But they also haven't provided any solution.</p>
  
  <p>Is there anyway by which I can mark my single API to delay for a time period.</p>
  
  <p>I am already using Newman parameter <code>--delay-request 60000</code> which delay between API's so it won't work for it. </p>
  
  <p><a href="https://i.stack.imgur.com/R5nsC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R5nsC.jpg" alt="enter image description here"></a></p>
  
  <p>Any solution will be helpful</p>