documentation: correct signature for event source function