title: Run function after 2 sec delay in nodejs
body: <p>This is a simple node js hander in cloud function that is getting called . It is calling another function redisApiCacheRemove as below . I want to call this function after 2 sec of delay , can  do it . Something like , wait for 2 sec and then run that function redisApiCacheRemove</p>
  <pre><code>            exports.drm = (request, response) =&gt; {
              
               const pubsubmessage = Buffer.from(request.body.message.data, 'base64').toString();
                 console.log('message received &gt;&gt;' + pubsubmessage);
                 const pubsubMessage = JSON.parse(pubsubmessage);
                 console.log(pubsubMessage.entity.id);
                 redisApiCacheRemove(pubsubMessage.entity.id, pubsubMessage.entity.event);
                 return response.status(200).send();
              ;
  </code></pre>