Switch to setImmediate for async util

Since it is more semantic for this use case as compared to
requestAnimationFrame