Forum Discussion

jacques_ca's avatar
4 years ago

Wait And Sleep in Freemarker

Hi   Is there a function wait/sleep/setTimeOut in Freemarker that we can use before executing anything? I made a search in Freemarker site, Google, Stackoverflow and I don't see anything.
  • peterlu's avatar
    4 years ago

    I don't think Freemarker has this built-in.

    What is your exact user case? Maybe some Javascript can help?

    Or use an endpoint to poke a AWS lambda node.js function. Inside the lambda function you can do a wait. Then you can config eg. 5 seconds for the lambda function to return. Then your httpclient in freemarker can continue execute after 5ish seconds. LOL