Can we use some event notification instead `setInterval`?