ecdavis/pants — Issue #25: Run Pants in its own thread
Author: ecdavis
Created: 2011-11-09 04:24:58+00:00
State: open

Add the ability to run Pants in its own thread. This should have absolutely no effect on the usability or performance of "regular" Pants and, ideally, should be as simple as passing Engine.start to a Thread object.

In practice it will probably be slightly more complicated due to the global nature of the engine. One possibility is requiring the developer to create a new Engine instance and pass that instance to all their channels before starting it up in a thread. This seems like a fairly unpleasant API, though, and would probably mean the whole thing would break if someone didn't follow the requirement...

Quandary!