joyent/node — pull request #6624 by rvagg (2013-12-02 23:05:54+00:00)
Title: core: nextTick additional arguments

Just wondering if this is worth considering? No tests or docs here because I'm testing the waters and am suspecting more than the normal amount of scrutiny considering this is very hot code.

`setImmediate()` and `setTimeout()` both have the ability to pass in extra args for the function being placed on the timer. This PR adds identical functionality to `process.nextTick()`.

```js
process.nextTick(function (a, b) {
console.log(a, b)
}, 'arg1', 'arg2')
```

Of course if you're using it like this then you're generally going to be passing off to a named function so you get to avoid the costs of a `.bind()` or the extra code to make a wrapping closure just to call out with args.

What think youz?