def __init__(self, deferred):
        self.result = deferred
        self._action = currentAction()
        self._finishAdded = False
        if self._action is None:
            raise RuntimeError(
                "DeferredContext() should only be created in the context of an "
                "eliot.Action.")
@param deferred: L{twisted.internet.defer.Deferred} to wrap.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/twisted.py/DeferredContext.__init__