sferik/twitter — pull request #320 by heaven (2012-10-19 14:46:46+00:00)
Title: threaded_map prevents to catch errors properly

Hi, suffering from this issue since update to 4.* version. In my code I have somethinglike this:

````ruby
users = twitter_request do
client.users(sites.map(&:username))
end
````

and

````ruby
def twitter_request(attempt = 1, &block)
yield
rescue ::Twitter::Error::TooManyRequests => e
...
end
````

Before it worked just fine, but now, if any error appear in client.users(sites.map(&:username)) it is being handled by the `twitter_request` method but also raise up and cause the whole process to die.

Writing something like this each time I need to call the API:

````ruby
users = begin
client.users(sites.map(&:username))
rescue ...
rescue ....
rescue ...
end
````

is not too good.

This problem could be solved by adding `Thread.abort_on_exception = true` to the threaded_map (and I think that would be correct to stop other threads if one fails)

Thank you,
Alex