I think that we could use this code instead of creating another wrapper function

```js
window.setTimeout(errorCb, 0, err);
```

https://developer.mozilla.org/en-US/docs/Web/API/Window.setTimeout