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

Await futures in emptyCache #370

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

banool
Copy link

@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?

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.

None yet

2 participants