'Store the value. Wake up the waiters.'

def set(self, value=None):

    with self._condition:
        self.value = value
        self._exception = None
        for callback in self._callbacks:
            self._handler.completion_queue.put((lambda : callback(self)))
        self._condition.notify_all()
