Skip to main content

XAsyncOp

Represents an operation code for an asynchronous provider.

Syntax

Constants

Remarks

The XAsyncProvider callback function for an asynchronous provider is called repeatedly, and what that asynchronous provider should do for each call is determined by the operation code specified for each call. XAsyncOp represents the operation codes that can be implemented by an asynchronous provider.
An asynchronous provider should implement only those operation codes from XAsyncOp needed to perform asynchronous work. For example, an asynchronous provider that performs non-cancelable asynchronous I/O work which doesn’t require cleanup only needs to implement XAsyncOp::GetResult.
For an example of an asynchronous provider that implements the DoWork, GetResult, and Cleanup operation codes from XAsyncOp, see the “Async Library” section in Asynchronous Programming Model.

Requirements

Header: XAsyncProvider.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XAsyncProviderData
XAsyncProvider Members
Asynchronous Programming Model
Last modified on August 20, 2026