Ever needed a Sleep Action in Reactive?
After not finding a Sleep Action for Reactive I've built one. It's crazy simple and done in OutSystems.
It loops while the total duration hasn't passed. Has both a Client and a Server Action.
Accepts positive numbers, greater than zero.
Use with caution! (as it freezes/sleeps Actions, the Action/Flow where the sleep is used, may appear "frozen" for the specified duration.
When using an exaggerated duration, the flow will sleep for a very large amount of time, however, it will always end, so if it's the intended use, it will be okay.)
Added checks for negative and 0 seconds durations, setting them as invalid duration.