# Delay

Add a controlled pause to Apex execution, useful in asynchronous processes.

> Kind: Apex method · Updated: 2026-07-01

## Signature

```apex
global static List<String> execute(List<Delay.FlowInput> inputs)
```

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;Delay.FlowInput&gt; | required | One entry per delay. Each FlowInput carries delayInMilliSeconds — the pause in milliseconds. |

## Return Type

List<String&gt; — the requestId values, in input order.

## Example

```apex
cldfs.Delay.FlowInput inputs = new cldfs.Delay.FlowInput();
inputs.delayInMilliSeconds = 1000;
List<String> requestId = cldfs.Delay.execute(new List<cldfs.Delay.FlowInput>{
    inputs
});
```

> **Also available: Client.delay()** — The invocable form above (cldfs.Delay.execute(FlowInput)) is the flow-friendly entry point. The package also exposes a direct method Client.delay(Integer delayInMilliSeconds, List<String&gt; requestIds) for calling from Apex without building a FlowInput.
