kriswallsmith/spork — pull request #16 by henrikbjorn (2013-07-04 19:43:50+00:00)
Title: Allow passing parameters for callback when forking.

This allows for cleaner code in someplaces where you would otherwise have to use a closure, which can be hard to test.

My use case.

I have a class with a method where i want to fork out, that method takes one argument like

``` php
fork(function ($fifo) use ($lucky) {
doSomethingExiting($lucky);
});
```

Instead of

```
fork('doSomethingExciting', $lucky);
```