> ## 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.

# XAsync

> XAsync

# XAsync

XAsync API 的参考资料。

## 函数

| 函数                                                                                    | 说明                                                                                              |
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [XAsyncCancel](/reference/system/xasync/functions/xasynccancel)                       | 尝试取消一个异步调用。                                                                                     |
| [XAsyncCompletionRoutine](/reference/system/xasync/functions/xasynccompletionroutine) | 表示异步调用的完成回调。                                                                                    |
| [XAsyncGetResultSize](/reference/system/xasync/functions/xasyncgetresultsize)         | 返回要传递给 [XAsyncGetResult](/reference/system/xasyncprovider/functions/xasyncgetresult) 的缓冲区所需的大小。 |
| [XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus)                 | 返回异步调用的状态，可选择等待其完成。                                                                             |
| [XAsyncRun](/reference/system/xasync/functions/xasyncrun)                             | 异步运行指定的回调函数。                                                                                    |
| [XAsyncWork](/reference/system/xasync/functions/xasyncwork)                           | 表示由 [XAsyncRun](/reference/system/xasync/functions/xasyncrun) 调用的回调函数。                          |

## 结构体

| 结构体                                                         | 说明          |
| ----------------------------------------------------------- | ----------- |
| [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) | 表示异步调用的生存期。 |

## Conceptual documentation

* [XAsync 库概述](/build/core-features/common/async/async-libraries/async-library-xasync)

## See also

[系统 API 参考](/reference/system/gc-reference-system-toc)\
[异步编程的设计目标和改进](/build/core-features/common/async/async-whitepaper)\
[异步编程模型](/build/core-features/common/async/async-programming-model)


## Related topics

- [XAsync 库概述](/zh-CN/build/core-features/common/async/async-libraries/async-library-xasync.md)
- [XAsyncBlock](/zh-CN/reference/system/xasync/structs/xasyncblock.md)
- [XAsyncWork](/zh-CN/reference/system/xasync/functions/xasyncwork.md)
- [XAsyncRun](/zh-CN/reference/system/xasync/functions/xasyncrun.md)
- [XAsyncCancel](/zh-CN/reference/system/xasync/functions/xasynccancel.md)
