class_docstr: A wrapper for a :class:`_asyncio.AsyncResult` that returns scalar values
  rather than :class:`_row.Row` values.
  
  The :class:`_asyncio.AsyncScalarResult` object is acquired by calling the
  :meth:`_asyncio.AsyncResult.scalars` method.
  
  Refer to the :class:`_result.ScalarResult` object in the synchronous
  SQLAlchemy API for a complete behavioral description.
  
  .. versionadded:: 1.4
class_docstr_tok: ["A","wrapper","for","a",":","class",":","`","_asyncio.AsyncResult","`","that","returns","scalar","values","rather","than",":","class",":","`","_row.Row","`","values",".","The",":","class",":","`","_asyncio.AsyncScalarResult","`","object","is","acquired","by","calling","the",":","meth",":","`","_asyncio.AsyncResult.scalars","`","method",".","Refer","to","the",":","class",":","`","_result.ScalarResult","`","object","in","the","synchronous","SQLAlchemy","API","for","a","complete","behavioral","description",".","..","versionadded",":",":","1.4"]
code: def __init__(self, real_result: Result[Any], index: _KeyIndexType):
      self._real_result = real_result
  
      if real_result._source_supports_scalars:
          self._metadata = real_result._metadata
          self._post_creational_filter = None
      else:
          self._metadata = real_result._metadata._reduce([index])
          self._post_creational_filter = operator.itemgetter(0)
  
      self._unique_filter_state = real_result._unique_filter_state
  
imports: from __future__ import annotations
  import operator
  from typing import Any
  from typing import AsyncIterator
  from typing import Optional
  from typing import overload
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import TypeVar
  from .None import exc
  from ...None import util
  from ...engine import Result
  from ...engine.result import _NO_ROW
  from ...engine.result import _R
  from ...engine.result import _WithKeys
  from ...engine.result import FilterResult
  from ...engine.result import FrozenResult
  from ...engine.result import ResultMetaData
  from ...engine.row import Row
  from ...engine.row import RowMapping
  from ...sql.base import _generative
  from ...util.concurrency import greenlet_spawn
  from ...util.typing import Literal
  from ...util.typing import Self
label_desc: Use image node_id 1 to create a new AsyncScalarResult object from inherited base classes: AsyncCommon with example: obj = AsyncScalarResult(real_result, index)