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

Reference material for XAsync APIs.

## Functions

| Function                                                                              | Description                                                                                                                       |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [XAsyncCancel](/reference/system/xasync/functions/xasynccancel)                       | Attempts to cancel an asynchronous call.                                                                                          |
| [XAsyncCompletionRoutine](/reference/system/xasync/functions/xasynccompletionroutine) | Represents the completion callback for an asynchronous call.                                                                      |
| [XAsyncGetResultSize](/reference/system/xasync/functions/xasyncgetresultsize)         | Returns the required size of the buffer to pass to [XAsyncGetResult](/reference/system/xasyncprovider/functions/xasyncgetresult). |
| [XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus)                 | Returns the status of the asynchronous call, optionally waiting for it to complete.                                               |
| [XAsyncRun](/reference/system/xasync/functions/xasyncrun)                             | Asynchronously runs the specified callback function.                                                                              |
| [XAsyncWork](/reference/system/xasync/functions/xasyncwork)                           | Represents the callback function invoked by [XAsyncRun](/reference/system/xasync/functions/xasyncrun).                            |

## Structures

| Structure                                                   | Description                                      |
| ----------------------------------------------------------- | ------------------------------------------------ |
| [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) | Represents the lifetime of an asynchronous call. |

## Conceptual documentation

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

## See also

[System API reference](/reference/system/gc-reference-system-toc)\
[Asynchronous Programming Design Goals and Improvements](/build/core-features/common/async/async-whitepaper)\
[Asynchronous Programming Model](/build/core-features/common/async/async-programming-model)


## Related topics

- [XAsync library overview](/build/core-features/common/async/async-libraries/async-library-xasync.md)
- [XAsync libraries for asynchronous task programming](/build/core-features/common/async/async-libraries/index.md)
- [XAsyncBlock](/reference/system/xasync/structs/xasyncblock.md)
- [XAsyncWork](/reference/system/xasync/functions/xasyncwork.md)
- [XAsyncCancel](/reference/system/xasync/functions/xasynccancel.md)
