You cannot put code like this into ion.util, which are general purposed utilities. You don't need to poll either. Just wait the 1.1s max until the event persister has persisted the events.