# Sandbox.MainThread.Queue

```csharp
static void Queue(System.Action method)
```

When running in another thread you can queue a method to run in the main thread.
If you are on the main thread we will execute the method immediately and return.

### Parameters

- `method` (`System.Action`)

Declared in [Sandbox.MainThread](/api/Sandbox.MainThread).
Assembly: `Sandbox.Engine`.
