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

Added ability to wait for cache arrival in RequestCache #1327

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

qstokkink
Copy link
Collaborator

Fixes #1321

This PR:

  • Adds RequestCache.wait_for to wait for particular caches to be added.
  • Updates test_requestcache.py to perform self.request_cache.shutdown() on tearDown (this is less efficient but it keeps the tests smaller).

@qstokkink qstokkink changed the title WIP: Added ability to wait for cache arrival in RequestCache READY: Added ability to wait for cache arrival in RequestCache Nov 20, 2024
@qstokkink qstokkink marked this pull request as ready for review November 20, 2024 15:32
@qstokkink qstokkink changed the title READY: Added ability to wait for cache arrival in RequestCache Added ability to wait for cache arrival in RequestCache Nov 20, 2024
@qstokkink qstokkink merged commit a2b42c8 into Tribler:master Nov 20, 2024
6 checks passed
@qstokkink qstokkink deleted the add_rq_wait_for branch November 20, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Create an awaitable event for RequestCaches
2 participants