# AsyncResultHandle.WaitForFinished(TimeSpan)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/Utils/AsyncResultHandle.cs#L50)

```csharp
public Task<bool> WaitForFinished(TimeSpan timeout)
```

### Parameters

- `timeout` (`TimeSpan`)

### Returns

Returns `true` if operation completes before timeout
