import typing
from typing import TypeGuard
import asyncio


def is_async_iterator(obj: typing.Any) -> TypeGuard[typing.AsyncIterator[object]]:
    """Determine if the object is an async iterator or not."""
    return asyncio.iscoroutinefunction(getattr(obj, "__anext__", None))