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

The service host limit should call the completion handler for stopFetching when enabled #421

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

thomasvl
Copy link
Member

No description provided.

- There's no direct way to tell a fetcher got delayed by the service per host
  limits, so just add some assertions and document it
- Update the logic for the checks to match what will/won't get notifications and
  callbacks.
- Better comment some of the tracking variables since they are tracking two
  different things (notifications vs callbacks).
@thomasvl thomasvl requested a review from dmaclach November 15, 2024 16:41
dmaclach
dmaclach previously approved these changes Nov 18, 2024
Sources/Core/GTMSessionFetcher.m Outdated Show resolved Hide resolved
Sources/Core/GTMSessionFetcher.m Show resolved Hide resolved
No functional changes (aside from more `@synchronized` calls to update the
state).

Future changes will then be able to act on the state as needed.
Also update/enable tests to check/match this.
@thomasvl thomasvl force-pushed the stopFetching_host_limit_delayed branch from 89ef20a to a35d5b2 Compare November 18, 2024 18:04
@thomasvl thomasvl merged commit 295c3f6 into google:main Nov 18, 2024
23 checks passed
@thomasvl thomasvl deleted the stopFetching_host_limit_delayed branch November 18, 2024 20:05
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