# CallDelayed(CallbackFunction, double)

> Register a callback to be executed later in the main thread.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static Action CallDelayed(EditorApplication.CallbackFunction callback, double seconds = 0)
```

### Parameters

**** (\[CallbackFunction]\(/engine/6000.7/script-reference/unityeditor/editorapplication/callbackfunction)): Callback to be executed later in the main thread.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Number of seconds to wait until the main thread executes the user callback.

### Returns

| Type                                                           | Description                                                                                                          |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [Action](https://learn.microsoft.com/dotnet/api/system.action) | Returns an off handler that can be used to unregister the callback before it gets executed in the main thread later. |
