5. Managing Deferred Events

The deferred event is key to the asynchronous programming model since it provides a highly flexible way of managing deferred callbacks. In this case, the event handlers are deferrable objects which implement the Deferrable interface. This chapter examines deferred events in more detail and introduces the concept of deferred event objects which are used to manage callback chains consisting of one or more deferrable objects.