Destroy an Operation, freeing the Operation's resources. If the operation is not yet complete, this also cancels the operation, causing the callback to be notified of the cancellation. Afterwards, the operation's resources are released. It is safe to use this call inside the operation's callback(s), provided all use of the operation is contained within the callback(s). In this case, use of the operation outside of the callback(s) cannot be guaranteed (e.g., DOFOperation_WaitComplete), as the callback may cause it to be destroyed (and thus become invalid) at any point.
|