event_source: allow to pass block for events