Querying the Status of an IOU Object
The RWTIOUResult class also has several functions that can be used to query the status of an IOU object:
*aborted() — Returns true if a client has requested that the operation be aborted.
*inError() — Returns true if the IOU was closed using setException().
*redeemable() — Returns true if the IOU has been closed, either with a value or with an exception.
*redeemed() — Returns true if any thread has successfully redeemed the IOU to retrieve its value.