> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksasyncresult.md).

# Class ksAsyncResult

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Handles the tracking and response handling for asynchronous cluster requests.

```csharp
public class ksAsyncResult : IAsyncResult
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ksAsyncResult](/reactor/api-reference/ks.reactor/ks.reactor.ksasyncresult.md)

#### Derived

[ksAsyncResult\<T>](/reactor/api-reference/ks.reactor/ks.reactor.ksasyncresult-1.md)

#### Implements

[IAsyncResult](https://learn.microsoft.com/dotnet/api/system.iasyncresult)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Fields

### m\_completedSynchronously <a href="#ks_reactor_ksasyncresult_m_completedsynchronously" id="ks_reactor_ksasyncresult_m_completedsynchronously"></a>

```csharp
protected bool m_completedSynchronously
```

#### Field Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### m\_error <a href="#ks_reactor_ksasyncresult_m_error" id="ks_reactor_ksasyncresult_m_error"></a>

```csharp
protected string m_error
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### m\_isCompleted <a href="#ks_reactor_ksasyncresult_m_iscompleted" id="ks_reactor_ksasyncresult_m_iscompleted"></a>

```csharp
protected bool m_isCompleted
```

#### Field Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### m\_waitHandle <a href="#ks_reactor_ksasyncresult_m_waithandle" id="ks_reactor_ksasyncresult_m_waithandle"></a>

```csharp
protected ManualResetEvent m_waitHandle
```

#### Field Value

[ManualResetEvent](https://learn.microsoft.com/dotnet/api/system.threading.manualresetevent)

## Properties

### AsyncState <a href="#ks_reactor_ksasyncresult_asyncstate" id="ks_reactor_ksasyncresult_asyncstate"></a>

User state object.

```csharp
public object AsyncState { get; set; }
```

#### Property Value

[object](https://learn.microsoft.com/dotnet/api/system.object)

### AsyncWaitHandle <a href="#ks_reactor_ksasyncresult_asyncwaithandle" id="ks_reactor_ksasyncresult_asyncwaithandle"></a>

Wait Handle.

```csharp
public WaitHandle AsyncWaitHandle { get; }
```

#### Property Value

[WaitHandle](https://learn.microsoft.com/dotnet/api/system.threading.waithandle)

### CompletedSynchronously <a href="#ks_reactor_ksasyncresult_completedsynchronously" id="ks_reactor_ksasyncresult_completedsynchronously"></a>

Was the request completed immediately.

```csharp
public bool CompletedSynchronously { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Error <a href="#ks_reactor_ksasyncresult_error" id="ks_reactor_ksasyncresult_error"></a>

Error message.

```csharp
public string Error { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### IsCompleted <a href="#ks_reactor_ksasyncresult_iscompleted" id="ks_reactor_ksasyncresult_iscompleted"></a>

Is the request complete.

```csharp
public bool IsCompleted { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### OnComplete <a href="#ks_reactor_ksasyncresult_oncomplete" id="ks_reactor_ksasyncresult_oncomplete"></a>

Callback to call when the task completes.

```csharp
public ksAsyncResultHandler OnComplete { get; set; }
```

#### Property Value

[ksAsyncResultHandler](/reactor/api-reference/ks.reactor/ks.reactor.ksasyncresulthandler.md)
