support lambdas in threads

@amw does this look good ?
I'll try processes next ...


good point, just placeholder to get this green until processes works too :)


On Thu, Aug 21, 2014 at 6:06 AM, Adam Wróbel <notifications@github.com>
wrote:

> In lib/parallel.rb:
>
> > @@ -186,6 +235,7 @@ def work_in_threads(items, options, &block)
> >      end
> >
> >      def work_in_processes(items, options, &blk)
> > +      items = items.instance_variable_get(:@items)
>
> instance_variable_get? I mean.. why? You never use that method in normal
> operation, it's for object inspecting and the like. Just expose that var
> through public method.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/grosser/parallel/pull/107/files#r16537130>.
>