# WaitForCompletion()

> Synchronously waits for the operation to complete.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AssetBundleModule

```csharp
public void WaitForCompletion()
```

### Remarks

Call this function if you need to wait on the main thread until the [AssetBundleUnloadOperation](/engine/6000.6/script-reference/unityengine/assetbundleunloadoperation.md) completes. When you call `WaitForCompletion`, the Unity runtime also waits for all other pending asynchronous operations to complete.
