async def __anext__(self):
        """Get the next value in the tee."""
        if not self._initialized:

            self._iterable = await aiter(self._iterable)
            self._initialized = True
            for sibling in self._siblings:

                sibling._iterable = self._iterable
                sibling._initialized = True

        if self._cache:

            return self._cache.popleft()

        value = await anext(self._iterable)
        for sibling in self._siblings:

            if sibling is self:

                continue

            sibling._append(value)

        return value
async def __anext__ ( self ) : if not self . _initialized : self . _iterable = await aiter ( self . _iterable ) self . _initialized = True for sibling in self . _siblings : sibling . _iterable = self . _iterable sibling . _initialized = True if self . _cache : return self . _cache . popleft ( ) value = await anext ( self . _iterable ) for sibling in self . _siblings : if sibling is self : continue sibling . _append ( value ) return value
Get the next value in the tee.