(self)
Set the internal flag to true. All coroutines waiting for it to
        become true are awakened. Coroutine that call wait() once the flag is
        true will not block at all.
Set the internal flag to true. All coroutines waiting for it to
        become true are awakened. Coroutine that call wait() once the flag is
        true will not block at all.
Set the internal flag to true . All coroutines waiting for it to become true are awakened . Coroutine that call wait () once the flag is true will not block at all .
def set(self):
        """Set the internal flag to true. All coroutines waiting for it to
        become true are awakened. Coroutine that call wait() once the flag is
        true will not block at all.
        """
        if not self._value:
            self._value = True

            for fut in self._waiters:
                if not fut.done():
                    fut.set_result(True)
def set ( self ) : if not self . _value : self . _value = True for fut in self . _waiters : if not fut . done ( ) : fut . set_result ( True )