# AbortRequestAsync Method

## Overloads

| [AbortRequestAsync(Int32)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm#Qlik_Engine_IHub_AbortRequestAsync_System_Int32_) |  | Sets an abort flag on a specific request in the current engine session.<br><br>\* If an abort flag is set on a pending request, the request is aborted.<br><br>\* If an abort flag is set on an ongoing request, the engine checks to see if it is possible to abort the request. |
| --- | --- | --- |
| [AbortRequestAsync(AsyncHandle, Int32)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm#Qlik_Engine_IHub_AbortRequestAsync_Qlik_Engine_AsyncHandle_System_Int32_) |  | Sets an abort flag on a specific request in the current engine session.<br><br>\* If an abort flag is set on a pending request, the request is aborted.<br><br>\* If an abort flag is set on an ongoing request, the engine checks to see if it is possible to abort the request. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm)

## AbortRequestAsync(Int32)

Sets an abort flag on a specific request in the current engine session.

* If an abort flag is set on a pending request, the request is aborted.
* If an abort flag is set on an ongoing request, the engine checks to see if it is possible to abort the request.

### Declaration

```

          Task AbortRequestAsync([QixName("qRequestId")] int requestId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Int32 | requestId | Identifier of request to abort. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.AbortRequestAsync.htm)

## AbortRequestAsync(AsyncHandle, Int32)

Sets an abort flag on a specific request in the current engine session.

* If an abort flag is set on a pending request, the request is aborted.
* If an abort flag is set on an ongoing request, the engine checks to see if it is possible to abort the request.

### Declaration

```

          Task AbortRequestAsync(AsyncHandle asyncHandle, [QixName("qRequestId")] int requestId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Int32 | requestId | Identifier of request to abort. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |