pub fn replace_data_event_sender(sender: UnboundedSender<DataEvent>)
Replaces the global data event sender for the current thread.