

def registerDeferred(self, event, d):
    '\n        Register a defer to be fired at the firing of a specific event.\n\n        :param string event: Currently supported values are `connect`. Another\n          value may be `_dtor` which will register an event to fire when this\n          object has been completely destroyed.\n\n        :param event: The defered to fire when the event succeeds or failes\n        :type event: :class:`Deferred`\n\n        If this event has already fired, the deferred will be triggered\n        asynchronously.\n\n        Example::\n\n          def on_connect(*args):\n              print("I\'m connected")\n          def on_connect_err(*args):\n              print("Connection failed")\n\n          d = Deferred()\n          cb.registerDeferred(\'connect\', d)\n          d.addCallback(on_connect)\n          d.addErrback(on_connect_err)\n\n        :raise: :exc:`ValueError` if the event name is unrecognized\n        '
    try:
        self._evq[event].schedule(d)
    except KeyError:
        raise ValueError('No such event type', self)

dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/bucket.py RawBucket.registerDeferred/VarMisuse@43/364 `event`->`self`