Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 999 Bytes

interfaces.rst

File metadata and controls

33 lines (24 loc) · 999 Bytes

kazoo.interfaces

kazoo.interfaces

Public API

IHandler implementations should be created by the developer to be passed into ~kazoo.client.KazooClient during instantiation for the preferred callback handling.

If the developer needs to use objects implementing the IAsyncResult interface, the IHandler.async_result method must be used instead of instantiating one directly.

IHandler

Private API

The IAsyncResult documents the proper implementation for providing a value that results from a Zookeeper completion callback. Since the ~kazoo.client.KazooClient returns an IAsyncResult object instead of taking a completion callback for async functions, developers wishing to have their own callback called should use the IAsyncResult.rawlink method.

IAsyncResult