let promise wait a couple of seconds before return : <p>I'm having a function returning a promise. In this function, we call a third party vender to send some push notification through their server. </p>

<p>it looks like </p>

<pre><code>apiGetLoggedInUser.then(
  user =&gt; {
    return sendMessage(user.name);
  }
)
</code></pre>

<p>However the thing is we decided to wait for 3 seconds before we really call this sendMessage function. However we'd prefer not to change sendMessage since it's provided. </p>

<p>I'm wondering how to really do the "wait" part in this scenario since promise is used to remove "sync" operations. </p>

<p>Am I understanding correctly? What shall I do?</p>
