How to implement a wait logic in server action

Hi All,

I need to implement a wait logic in server action. The server action is consumed by a timer and I want to have a wait (1 min) and then proceed the execution. Please suggest your thoughts.



Hi Karthik,

This Forge component should get you what you need.



Hi Karthik,

There's Forge components available that would allow you to implement wait logic in your code.

But do you mind sharing why you need to implement it? Server actions with sleep/wait logic are usually a sign of a problem being covered. One minute sounds very long.

Hi Karthik,

So far as I see you're using an action inside a timer. Can you use a BPT for that? You can use the wait from BPT and than run your logic.

Hope this can help you.

Best regards,

Ricardo M Pereira