def __init__(self, wrapped, exit_callback):
        """Constructor.

        Args:
            wrapped (Future): the original Future object (to wrap)
            exit_callback: the exit callback to call at the end of
                the block
        """
        Future.__init__(self)
        wrapped.add_done_callback(self._done_callback)
        self._exit_callback = exit_callback
        self._wrapped = wrapped
def __init__ ( self , wrapped , exit_callback ) : Future . __init__ ( self ) wrapped . add_done_callback ( self . _done_callback ) self . _exit_callback = exit_callback self . _wrapped = wrapped
Constructor.

        Args:
            wrapped (Future): the original Future object (to wrap)
            exit_callback: the exit callback to call at the end of
                the block