Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Add client defined network status #4234

Closed
wants to merge 4 commits into from

Conversation

tmpsantos
Copy link
Contributor

This API will let the client force a network status. If set to Offline, we won't make network requests.

When set make to Online, it will trigger the pending requests and try to fetch tiles from the network.

@tmpsantos
Copy link
Contributor Author

👀 @jfirebaugh

@jfirebaugh
Copy link
Contributor

No (more) timing-based tests, please. Please figure out how to write the test without using timers.

This API will let the client force a network status. If set
to Offline, we won't make network requests.

When set make to Online, it will trigger the pending requests
and try to fetch tiles from the network.
Use the newly added NetworkStatus::Set().
The user can now force the Offline mode and set it back
to Online, triggering the requests waiting for network connection.
@tmpsantos
Copy link
Contributor Author

No (more) timing-based tests, please. Please figure out how to write the test without using timers.

👍 This one just needs to make sure that the request only gets answered after setting NetworkStatus back to Online.

@tmpsantos tmpsantos force-pushed the tmpsantos-offline_mode branch from 81b8fc1 to fc805dd Compare March 8, 2016 12:49
@tmpsantos
Copy link
Contributor Author

Merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants