8000 Use low priority queue instead of background for SCNetworkReachabilityGetFlags() by ElfSundae · Pull Request #4587 · AFNetworking/AFNetworking · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Use low priority queue instead of background for SCNetworkReachabilityGetFlags() #4587

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

ElfSundae
Copy link
Contributor

Issue Link 🔗

Close #4223, related Alamofire/Alamofire#3207

Background queues may stop execution altogether in low power mode, so utility mode is recommended.

Goals ⚽

This PR changes DISPATCH_QUEUE_PRIORITY_BACKGROUND to DISPATCH_QUEUE_PRIORITY_LOW (maps to the QOS_CLASS_UTILITY class) for SCNetworkReachabilityGetFlags() in the method -[AFNetworkReachabilityManager startMonitoring].

Implementation Details 🚧

DISPATCH_QUEUE_PRIORITY_BACKGROUND -> DISPATCH_QUEUE_PRIORITY_LOW

Testing Details 🔍

None, there's no way to test this behavior.

@jshier jshier merged commit 77ef5fe into AFNetworking:master Sep 21, 2020
parkboo added a commit to parkboo/AFNetworking that referenced this pull request Sep 22, 2020
* commit '77ef5fed64d98107acd177a90182163a20ba4567': (31 commits)
  Use low priority queue instead of background for SCNetworkReachabilityGetFlags() (AFNetworking#4587)
  Exempt "needs investigation" from stalebot.
  Only mark unlabeled issues as stale.
  Loop over only changed keypaths in request serializer (AFNetworking#4581)
  Disable 'Zombie Objects' diagnostics for tvOS scheme (AFNetworking#4572)
  Fix docblock for setAuthenticationChallengeHandler (AFNetworking#4574)
  Fix type in CHANGELOG. (AFNetworking#4562)
  Prepare 4.0.1 Release (AFNetworking#4555)
  Fix ServerTrustError crash. (AFNetworking#4553)
  Fix SPM usage with better publicHeadersPath. (AFNetworking#4554)
  Replace instead of appending to the default header (AFNetworking#4550)
  Fix nullability (AFNetworking#4551)
  Update CHANGELOG.md (AFNetworking#4537)
  Fix UIKit+AFNetworking.h (AFNetworking#4536)
  Remove unused UIImage+AFNetworking.h (AFNetworking#4535)
  Separate bundle identifier for watchOS target (AFNetworking#4533)
  Fix MobileCoreServices renamed warning, close #4520 (AFNetworking#4532)
  Add FOUNDATION_EXPORT for AFJSONObjectByRemovingKeysWithNullValues (AFNetworking#4529)
  (Infra) Make infra changes to cleanup project and simplify its maintenance (AFNetworking#4531)
  Improve podspec (AFNetworking#4528)
  ...

# Conflicts:
#	Framework/AFNetworking.h
@ElfSundae ElfSundae deleted the startMonitoring-QoS branch December 21, 2020 02:13
ElfSundae added a commit to ElfSundae/AFNetworking that referenced this pull request Dec 30, 2020
- Use low priority queue instead of background for `SCNetworkReachabilityGetFlags()` (AFNetworking#4587)
- Fix redirect test: use httpbingo service instead (AFNetworking#4620)
@Scopetta197
Copy link

Ok

Copy link
@Scopetta197 Scopetta197 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

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.

Usage of DISPATCH_QUEUE_PRIORITY_BACKGROUND
3 participants
0