dispatch/reboot — pull request #20 by LannyRipple (2012-09-02 22:29:29+00:00)
Title: allow for configable Http

Nathan,

I needed a configable Http and thought I would offer this back. The code is quite ugly but with the desire to use the same identifiers during construction as exist in the class it's hard to do better.

This code additionally provides the `copy` method to abstract `waiting` and `threads`. A big problem with those methods as they exist is that they don't return an Http. If I wish to pass around an Http.waiting(Duration(30, TimeUnit.SECONDS)) to one of my functions it breaks since I'm now dealing with an Executor and not an Http. Personally I would just drop `waiting` and `threads` in favor of `copy` (although copy is a terrible name given the partial sharing going on under the hood :/

No idea if these are good enough for the project but thought I'd offer. Thanks a ton for coming up with Dispatch in the first place.