Skip to content
New issue

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

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

Already on GitHub? # to your account

Await futures in emptyCache #370

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Await futures in emptyCache #370

merged 2 commits into from
Aug 13, 2024

Conversation

banool
Copy link
Contributor

@banool banool commented Mar 26, 2022

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Hard to say, sort of a bug fix.

⤵️ What is the current behavior?

Currently when you empty the cache, even if you await it, some of the work happens out of band.

🆕 What is the new behavior (if this is a feature change)?

When you empty the cache and await it, all the underlying functionality is awaited as well.

💥 Does this PR introduce a breaking change?

A little. Callers may be used to this call being quick, now it will take a bit longer. Users who prefer the previous behaviour should likely stop awaiting the future. This is generally preferred and standard; awaiting a future should actually await all the underlying functionality and if a user doesn't want to wait for that, they just don't await it.

🐛 Recommendations for testing

I've tested this locally but can test further if requested.

📝 Links to relevant issues/docs

No issue that I'm aware of.

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

contactjavas added a commit to tentram/flutter_cache_manager that referenced this pull request Sep 18, 2023
@LastxTemplar
Copy link

Is there a timeline for when this will be reviewed?

@martijn00 martijn00 merged commit 55ea36e into Baseflow:develop Aug 13, 2024
10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants