Skip to content

iter_list_proposal_votes async

iter_list_proposal_votes(
    network_id: ResourceIdString,
    proposal_id: ResourceIdString,
    *,
    config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
    max_results: Optional[ProposalListMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ListProposalVotesOutput]
Source code in docs_src/capo_managedblockchain/_services/async_managed_blockchain.py
async def iter_list_proposal_votes(
    self,
    network_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
    proposal_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
    *,
    config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
    max_results: Optional[
        "capo_managedblockchain.types.proposal_list_max_results.ProposalListMaxResults"
    ] = None,
    next_token: Optional[
        "capo_managedblockchain.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_managedblockchain.types.list_proposal_votes_output.ListProposalVotesOutput]":
    _token = next_token
    while True:
        _response = await self.list_proposal_votes(
            network_id,
            proposal_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break