def __call__(self, *args, **kwargs):
    with self._condition:
        self._called = True
        if args:
            self._passed_future = args[0]
        if ((1 < len(args)) or kwargs):
            self._passed_other_stuff = (tuple(args[1:]), dict(kwargs))
        self._condition.notify_all()
def __call__(self, *args, **kwargs):
    with self._condition:
        self._called = True
        if args:
            self._passed_future = args[0]
        if ((1 < len(args)) or kwargs):
            self._passed_other_stuff = (tuple(args[1:]), dict(kwargs))
        self._condition.notify_all()