title: Schedule a Cloud Function trigger from within another function (Firebase)
body: <p>I'm using Cloud Functions as a server for a multiplayer game.</p>
  
  <p>Is there a way to set a cloud function to execute some code or call another function in X seconds/minutes? I know about cron jobs and I'm already using them, but what I want to achieve now is different.</p>
  
  <p>I want the function to schedule a future execution of the same or some other function:</p>
  
  <pre><code>exports.testFunction = functions.database.ref('...').onCreate(event =&gt; {
  
     //do stuff now
  
     //do the following in 120 seconds or schedule another function
  
  });
  </code></pre>
  
  <p>PS. I knew that the limit that a function can run was 100 seconds. Is it now increased to 540 seconds?</p>