Skip to content

iter_list_participant_events async

iter_list_participant_events(
    stage_arn: StageArn,
    session_id: StageSessionId,
    participant_id: ParticipantId,
    *,
    config_overrides: Optional[AsyncIVSRealTimeClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxParticipantEventResults] = None,
) -> AsyncIterator[ListParticipantEventsResponse]
Source code in docs_src/capo_ivs_realtime/_services/async_ivs_real_time.py
async def iter_list_participant_events(
    self,
    stage_arn: "capo_ivs_realtime.types.stage_arn.StageArn",
    session_id: "capo_ivs_realtime.types.stage_session_id.StageSessionId",
    participant_id: "capo_ivs_realtime.types.participant_id.ParticipantId",
    *,
    config_overrides: Optional[AsyncIVSRealTimeClientConfig] = None,
    next_token: Optional[
        "capo_ivs_realtime.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional[
        "capo_ivs_realtime.types.max_participant_event_results.MaxParticipantEventResults"
    ] = None,
) -> "AsyncIterator[capo_ivs_realtime.types.list_participant_events_response.ListParticipantEventsResponse]":
    _token = next_token
    while True:
        _response = await self.list_participant_events(
            stage_arn,
            session_id,
            participant_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break