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

            self._iterable = await aiter(self._iterable)
            self._initialized = True
            for _ in range(self._start):

                await anext(self._iterable)
                self._offset = self._offset + 1

            value = await anext(self._iterable)
            self._offset = self._offset + 1
            if self._stop is not None and self._offset >= self._stop:

                raise StopAsyncIteration()

            return value

        for _ in range(self._step - 1):

            await anext(self._iterable)
            self._offset = self._offset + 1

        if self._stop is not None and self._offset >= self._stop:

            raise StopAsyncIteration()

        value = await anext(self._iterable)
        self._offset = self._offset + 1
        return value
async def __anext__ ( self ) : if not self . _initialized : self . _iterable = await aiter ( self . _iterable ) self . _initialized = True for _ in range ( self . _start ) : await anext ( self . _iterable ) self . _offset = self . _offset + 1 value = await anext ( self . _iterable ) self . _offset = self . _offset + 1 if self . _stop is not None and self . _offset >= self . _stop : raise StopAsyncIteration ( ) return value for _ in range ( self . _step - 1 ) : await anext ( self . _iterable ) self . _offset = self . _offset + 1 if self . _stop is not None and self . _offset >= self . _stop : raise StopAsyncIteration ( ) value = await anext ( self . _iterable ) self . _offset = self . _offset + 1 return value
Get the next value in the slice.