Apex
CloudFiles Client

Delay

this method can be used in apex to add a pause to the execution, especially in asynchronous processes since salesforce does not provide a built in way to delay execution, this method is useful in scenarios where a controlled delay is required global static list\<string> execute(list\<flowinput> inputs) global class flowinput { @invocablevariable(label='delay(milli seconds)') global integer delayinmilliseconds; } parameters inputs delay in milli seconds return type list\<string> requestid example cldfs delay flowinput inputs = new cldfs delay flowinput(); inputs delayinmilliseconds = 1000; list\<string> requestid = cldfs delay execute(new list\<cldfs delay flowinput>{ inputs });