Skip to content

Conversation

wangyk414
Copy link

This allows the client to persist and re-construct a ResumeToken, which is particularly useful when the change stream consumption is interrupted and the client is able to restart from a persisted ResumeToken without losing any changes.

@wangyk414 wangyk414 changed the title make from_raw publicly accessible make from_raw and parsed publicly accessible Jan 22, 2025
@isabelatkinson isabelatkinson self-requested a review January 22, 2025 15:40
@isabelatkinson
Copy link
Contributor

Hey @wangyk414, thanks for opening this PR!

to persist and re-construct a ResumeToken

What is your use case for the intermediary document rather than storing the ResumeToken directly? The driver treats ResumeToken as an opaque type throughout, so you shouldn't need to use documents for resume tokens anywhere in the API.

@wangyk414
Copy link
Author

wangyk414 commented Jan 22, 2025

Hi @isabelatkinson, good day.
Thank you for pointing out. Indeed it is right to store the ResumeToken directly. I will close the pr

@wangyk414 wangyk414 closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants