AsyncBase Class
Implements the Windows Runtime asynchronous state machine.
template <
typename TComplete,
typename TProgress = Details::Nil,
AsyncResultType resultType = SingleResult
>
class AsyncBase : public AsyncBase< TComplete, Details::Nil, resultType >;
template <
typename TComplete,
AsyncResultType resultType
>
class AsyncBase< TComplete, Details::Nil, resultType > : public Microsoft::WRL::Implements< IAsyncInfo >;
Parameters
TComplete
An event handler that is called when an asynchronous operation completes.TProgress
An event handler that is called when a running asynchronous operation reports the current progress of the operation.resultType
One of the AsyncResultType enumeration values. By default, SingleResult.
Members
Public Constructors
Name |
Description |
---|---|
Initializes an instance of the AsyncBase class. |
Public Methods
Name |
Description |
---|---|
Cancels an asynchronous operation. |
|
Closes the asynchronous operation. |
|
Invokes the completion event handler, or resets the internal progress delegate. |
|
Invokes the current progress event handler. |
|
Retrieves the error code for the current asynchronous operation. |
|
Retrieves the handle of the asynchronous operation. |
|
Retrieves a value that indicates the status of the asynchronous operation. |
|
Copies the address of the current completion event handler to the specified variable. |
|
Copies the address of the current progress event handler to the specified variable. |
|
Sets the handle of the asynchronous operation. |
|
Sets the address of the completion event handler to the specified value. |
|
Sets the address of the progress event handler to the specified value. |
|
Starts the asynchronous operation. |
Protected Methods
Name |
Description |
---|---|
Tests whether delegate properties can be modified in the current asynchronous state. |
|
Tests whether the results of an asynchronous operation can be collected in the current asynchronous state. |
|
Determines whether the asynchronous operation should continue processing or should halt. |
|
Retrieves the status of the current asynchronous operation. |
|
Retrieves the error code for the current asynchronous operation. |
|
When overridden in a derived class, cancels an asynchronous operation. |
|
When overridden in a derived class, closes an asynchronous operation. |
|
When overridden in a derived class, starts an asynchronous operation. |
|
Indicates whether the current asynchronous operation has completed. |
|
Indicates whether the specified error code can modify the internal error state. |
Inheritance Hierarchy
AsyncBase
AsyncBase
Requirements
Header: async.h
Namespace: Microsoft::WRL