# AsyncResultHandle Methods

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

## Reset {#reset-33c063a6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/methods/reset-33c063a6/)

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

```csharp
public virtual void Reset()
```

Reset the current result handle

## WaitFor(TimeSpan, Func&lt;bool&gt;) {#waitfor-system-timespan-system-func-bool-c0137289}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/methods/waitfor-system-timespan-system-func-bool-c0137289/)

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

```csharp
public Task<bool> WaitFor(TimeSpan timeout, Func<bool> checkFlag)
```

### Parameters

- `timeout` (`TimeSpan`)
- `checkFlag` (`Func<bool>`)

### Returns

Returns `true` if operation completes before timeout

## WaitForContinue(TimeSpan) {#waitforcontinue-system-timespan-98064482}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/methods/waitforcontinue-system-timespan-98064482/)

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

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

### Parameters

- `timeout` (`TimeSpan`)

### Returns

Returns `true` if operation completes before timeout

## WaitForFinished(TimeSpan) {#waitforfinished-system-timespan-0a8437f9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/methods/waitforfinished-system-timespan-0a8437f9/)

[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
