> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XAsyncCancel

> XAsyncCancel

# XAsyncCancel

비동기 호출을 취소하려고 시도합니다.

## 구문

```cpp theme={null}
void XAsyncCancel(  
         XAsyncBlock* asyncBlock  
)  
```

### 매개 변수

*asyncBlock*   \_Inout\_\
형식: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

비동기 호출에 대한 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)에 대한 포인터입니다.

### 반환 값

형식: void

## 설명

`XAsyncCancel` 함수가 아직 완료되지 않은 비동기 호출에 대해 호출되면 [XAsyncGetResult](/reference/system/xasyncprovider/functions/xasyncgetresult), [XAsyncGetResultSize](/reference/system/xasync/functions/xasyncgetresultsize) 및 [XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus) 함수는 `E_ABORT`를 반환하고 비동기 호출의 완료가 시그널됩니다. 취소는 취소되는 호출에 따라 동기적으로, 비동기적으로 발생하거나 전혀 발생하지 않을 수 있습니다. 비동기 호출에 대해 완료 콜백이 지정된 경우 해당 콜백이 호출됩니다. 완료 콜백에 대한 자세한 내용은 [XAsyncCompletionRoutine](/reference/system/xasync/functions/xasynccompletionroutine)을 참조하세요.

`XAsyncCancel` 함수가 이미 완료된 비동기 호출에 대해 호출되면 아무 일도 일어나지 않습니다.

## 요구 사항

**헤더:** XAsync.h

**라이브러리:** xgameruntime.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [XAsync 라이브러리 개요](/build/core-features/common/async/async-libraries/async-library-xasync)
* [취소 가능성 설정](/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-cancelability)
* [사용자 지정 공급자 설정](/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-custom-provider)
* [비동기 프로그래밍 모델](/build/core-features/common/async/async-programming-model)

## 함께 보기

[XAsyncCompletionRoutine](/reference/system/xasync/functions/xasynccompletionroutine)\
[XAsync 멤버](/reference/system/xasync/xasync_members)\
[비동기 프로그래밍 모델](/build/core-features/common/async/async-programming-model)


## Related topics

- [취소 가능성 설정 예제](/ko/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-cancelability.md)
- [XAsync](/ko/reference/system/xasync/xasync_members.md)
- [비동기 프로그래밍 모델](/ko/build/core-features/common/async/async-programming-model.md)
- [XAsyncCompletionRoutine](/ko/reference/system/xasync/functions/xasynccompletionroutine.md)
- [XAsync 라이브러리 개요](/ko/build/core-features/common/async/async-libraries/async-library-xasync.md)
