# ProcessOne()

> This function can called in the main thread to force the execution of one enqueued action.

## Definition

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

```csharp
public static bool ProcessOne()
```

### Returns

| Type                                                          | Description                                       |
| ------------------------------------------------------------- | ------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if an enqueued action was processed. |

### Remarks

This can be used to prevent the main thread from waiting for an action to be executed later. We usually use this function internally when we process a synchronous search request using [SearchService.Request](/engine/6000.7/script-reference/unityeditor/search/searchservice/request.md) with [SearchFlags.Synchronous](/engine/6000.7/script-reference/unityeditor/search/searchflags/synchronous.md).
