Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task aware Datums #94

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Task aware Datums #94

merged 2 commits into from
Oct 26, 2023

Conversation

srid
Copy link
Member

@srid srid commented Oct 26, 2023

The Datum type now keeps track of the loader/refresh tokio task (its AbortHandle specifically), so that we can cancel a previously-running refresh before doing a new one.

This refactors a change made in the #93 PR (which which change, the app will panic if the user tries to load two flakes in quick succession).

@srid srid marked this pull request as ready for review October 26, 2023 19:37
@srid srid merged commit 0c45504 into main Oct 26, 2023
22 checks passed
@srid srid deleted the task-aware-datum branch October 26, 2023 20:41
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.

1 participant