Redeeming an IOU
The act of reading a result from an IOU is called
redeeming the IOU. To redeem an IOU, you must possess an
RWTIOUResult handle that references the IOU escrow object.
The
RWTIOUResult class has three functions for redeeming the IOU:
A function operator
operator()().
A conversion operator
operator Redeemable().
A
redeem() function.
These three members perform an identical function. Given that
iou is an instance of the
RWTIOUResult class, the following statements are functionally equivalent:
value = iou();
value = iou;
value = iou.redeem();