Wrap publishing in next_tick method