.. include:: headings.inc .. currentmodule:: lib.delayedresult .. highlight:: python .. _lib.delayedresult.Handler: ========================================================================================================================================== |phoenix_title| **Handler** ========================================================================================================================================== Bind some of the arguments and keyword arguments of a callable ('listener'). Then when the Handler instance is called (e.g. `handler(result, **kwargs)`) the result is passed as first argument to callable, the kwargs is combined with those given at construction, and the args are those given at construction. Its return value is returned. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **Handler** .. raw:: html

Inheritance diagram of Handler

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.delayedresult.Handler.__init__` Bind args and kwargs to listener. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: Handler Bind some of the arguments and keyword arguments of a callable ('listener'). Then when the Handler instance is called (e.g. `handler(result, **kwargs)`) the result is passed as first argument to callable, the kwargs is combined with those given at construction, and the args are those given at construction. Its return value is returned. .. method:: __init__(self, listener, \*args, \*\*kwargs ) Bind args and kwargs to listener.