(self)
Block until the internal flag is true.

        If the internal flag is true on entry, return True
        immediately.  Otherwise, block until another coroutine calls
        set() to set the flag to true, then return True.
Block until the internal flag is true.
Block until the internal flag is true .
async def wait(self):
        """Block until the internal flag is true.

        If the internal flag is true on entry, return True
        immediately.  Otherwise, block until another coroutine calls
        set() to set the flag to true, then return True.
        """
        if self._value:
            return True

        fut = self._get_loop().create_future()
        self._waiters.append(fut)
        try:
            await fut
            return True
        finally:
            self._waiters.remove(fut)
async def wait ( self ) : if self . _value : return True fut = self . _get_loop ( ) . create_future ( ) self . _waiters . append ( fut ) try : await fut return True finally : self . _waiters . remove ( fut )