Added JSDocs for external class When and Defer.