Skip to content

iter_list_invitations async

iter_list_invitations(
    *,
    config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
    max_results: Optional[ProposalListMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ListInvitationsOutput]
Source code in docs_src/capo_managedblockchain/_services/async_managed_blockchain.py
async def iter_list_invitations(
    self,
    *,
    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_invitations_output.ListInvitationsOutput]":
    _token = next_token
    while True:
        _response = await self.list_invitations(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break