# WaitAllRequests()

> Waits until the completion of every request.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void WaitAllRequests()
```

### Remarks

If you call [AsyncGPUReadbackRequest.done](/engine/6000.5/script-reference/unityengine/rendering/asyncgpureadbackrequest/done.md) on any request after this call, it always returns `true` whether the request completed successfully or not. You can use [AsyncGPUReadbackRequest.hasError](/engine/6000.5/script-reference/unityengine/rendering/asyncgpureadbackrequest/haserror.md) to find out whether a request has been successful or not. WaitAllRequests stalls both the GPU and the CPU. This means that calling this function results in a large performance decrease. Therefore, you should use this function sparingly.
