# Dispatcher

> The search dispatcher is used to synchronize events from the search provider threads and the main UI threads.

## Definition

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

```csharp
public static class Dispatcher
```

## Static Methods

| Method                                                                                      | Description                                                                                                |
| ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [CallDelayed](/engine/6000.5/script-reference/unityeditor/search/dispatcher/calldelayed.md) | Register a callback to be executed later in the main thread.                                               |
| [Enqueue](/engine/6000.5/script-reference/unityeditor/search/dispatcher/enqueue.md)         | This function can be used in a thread to enqueue an action that will be executed later in the main thread. |
| [ProcessOne](/engine/6000.5/script-reference/unityeditor/search/dispatcher/processone.md)   | This function can called in the main thread to force the execution of one enqueued action.                 |
