Print

Print


On May 13, 2014, at 9:52 PM, Jacek Becla <[log in to unmask]> wrote:

> It turns out kazoo always uses async:
> 
> http://kazoo.readthedocs.org/en/latest/_modules/kazoo/client.html#KazooClient.get

The synchronous mode is implemented by making an asynchronous call, then waiting for it to complete. In the implementation of get:

return self.get_async(path, watch).get()

The self.get_async(path, watch) call returns a kazoo.interfaces.IAsyncResult, and calling get() on that blocks until the async_get completes or fails (see http://kazoo.readthedocs.org/en/latest/api/interfaces.html#kazoo.interfaces.IAsyncResult).



########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1