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

# XAsync libraries for asynchronous task programming

> Use the XAsync and XAsyncProvider libraries to define, invoke, and cancel asynchronous tasks and custom providers in GDK titles, with worked examples.

Explore async libraries topics for XBOX game development.

> [card] [Run microsoft game development kit API](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasync-example-run-gdk-task.md)
>
> This topic provides an example of how to run a Microsoft Game Development Kit (GDK) API task.

> [card] [Run simple task example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasync-example-run-simple-task.md)
>
> This topic provides an example of how to run a simple user task.

> [card] [Set up async task example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasync-example-setup-async-task.md)
>
> This topic provides an example of how to set up async tasks.

> [card] [Xasync library](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasync.md)
>
> The XAsync library provides methods and data that define async tasks and their callbacks.

> [card] [Set up cancelability example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-cancelability.md)
>
> This topic provides an example of how to set up cancelability in a custom provider callback.

> [card] [Set up custom provider example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-custom-provider.md)
>
> This topic provides an example of how to set up a custom async provider.

> [card] [Set up invocation methods example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-invocation-methods.md)
>
> This topic provides an example of how to set up invocation methods for a custom provider.

> [card] [Set up return data example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider-example-setup-return-data.md)
>
> This topic provides an example of how to set up return data.

> [card] [Xasyncprovider library](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider.md)
>
> This topic describes the purpose of the XAsyncProvider library.

> [card] [Clean up task queue example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xtaskqueue-example-cleanup-task-queue.md)
>
> This topic provides an example of how to clean up a task queue when it's no longer needed to avoid leaking resources.

> [card] [Create task queue example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xtaskqueue-example-create-task-queue.md)
>
> This topic provides an example of how to create a task queue.

> [card] [Dispatch task queue example](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xtaskqueue-example-dispatch-task-queue.md)
>
> This topic provides an example of how to dispatch a task queue.

> [card] [Xtaskqueue library](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xtaskqueue.md)
>
> Use this topic to manage task queues with the XTaskQueue library.


## Related topics

- [Asynchronous Programming Overview (contents)](https://docs.xbox.com/build/core-features/common/async/async-toc.md)
- [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)
- [XAsyncGetStatus](https://docs.xbox.com/reference/system/xasync/functions/xasyncgetstatus.md)
- [XAsyncProvider library overview](https://docs.xbox.com/build/core-features/common/async/async-libraries/async-library-xasyncprovider.md)
- [XAsyncRun](https://docs.xbox.com/reference/system/xasync/functions/xasyncrun.md)
