Would `return window.setImmediate` be sufficient?