I'm using Cloud Functions as a server for a multiplayer game.
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.
I want the function to schedule a future execution of the same or some other function:
exports.testFunction = functions.database.ref('...').onCreate(event => {
//do stuff now
//do the following in 120 seconds or schedule another function
});
PS. I knew that the limit that a function can run was 100 seconds. Is it now increased to 540 seconds?