Enhance dispatch_source_t with 'onEvent' convenience method.