State

This function returns the current state of the asynchronous operation. It can be any of the following values:

§   ASYNC_STATE_FULFILLED = 0
The asynchronous operation successfully completed its task.

§   ASYNC_STATE_REJECTED = 1
The asynchronous operation failed to complete successfully due to an error.

§   ASYNC_STATE_PENDING = 2
The asynchronous operation is still in progress and has neither succeeded nor failed yet.

§   ASYNC_STATE_SETTLED = 3
The asynchronous operation is finished, whether it ended in success or failure.

 

JavaScript

 

 

 

State

 

C#

 

 

 

AsyncState State { get; }

 

C++

 

 

 

HRESULT State ([out, retval] AsyncState* pVal)