# Sandbox.Component.Invoke

```csharp
void Invoke(float secondsDelay, System.Action action, System.Threading.CancellationToken ct = null)
```

Invoke a method in x seconds. Won't be invoked if the component is no longer active.

### Parameters

- `secondsDelay` (`float`)
- `action` (`System.Action`)
- `ct` (`System.Threading.CancellationToken`), default `null`

Declared in [Sandbox.Component](/api/Sandbox.Component).
Assembly: `Sandbox.Engine`.
