Return the result of the Invoke Operation, if any.
This does not block the caller.
- Note
- For broadcast or multicast operations, this returns the first result only. Multiple results are returned only via the operation's callback.
- Lifecycle
- The data returned is owned by the DOFOperation and is only valid as long as the DOFOperation remains valid. It must not be destroyed individually.
- Parameters
-
| op | The Operation. This must not be NULL and must represent a valid Invoke Operation. |
[out] | pException | An Exception. If pException is NULL , no exception is reported. Otherwise, the output is either a DOFException, or NULL to indicate no exception occurred. DOFException_Destroy must be called to destroy the returned DOFException, if any. |
- Returns
- The DOFResult of the Operation, or NULL if a result cannot be returned. There are two cases in which a result cannot be returned:
- If the operation's result was an exception, the exception is reported via pException, which will be non-NULL.
- If the operation does not yet have a result, pException will represent a DOFERROR_FAILED.