pubnub/python — pull request #7 by quinox (2014-03-12 11:08:35+00:00)
Title: Added keyword argument 'blocking' to publish()

I want to use Pubnub on devices with high-latency internet connections. Currently this means my program hangs for 4 seconds every time I call `publish()`. To unfreeze my application I've added an optional background worker pool to `Pubnub` and an extra keywork argument for `publish()`.

Advantages of the implementation:
* Unchanged API. If you keep using `Pubnub.py` as before the behavior will be precisely the same. It won't instantiate the WorkerPool either.
* Easy async requests for everybody using your API
* Entirely optional and configureable per call