XAsyncWork
Represents the callback function invoked by XAsyncRun.Syntax
Parameters
asyncBlock _Inout_Type: XAsyncBlock* A pointer to a copy of the XAsyncBlock that was passed to XAsyncRun.
Return value
Type: HRESULT ReturnsS_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes.
Remarks
A pointer to a copy of the XAsyncBlock that was passed to XAsyncRun is used to allow the system to ensure that the pointer always exists and is valid for the callback. When using the XAsyncRun helper function to asynchronously run a callback function, you specify anXAsyncWork pointer for the callback function to be invoked. XAsyncRun then uses XAsyncProvider functionality to run the callback function.
For more information about XAsyncProvider functionality, see Asynchronous Programming Model.
Requirements
Header: XAsync.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
XAsync MembersXAsyncRun
Asynchronous Programming Model
