Deprecate dispatch_main_async_safe, introduce two more policy `.safeAsyncMainThread` (for UIKit diffable data source) and `.safeAsyncMainQueue` (for most common cases) by dreampiggy · Pull Request #3766 · SDWebImage/SDWebImage
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 6k
Conversation
dreampiggy
changed the title
Deprecate dispatch_main_async_safe, UIView+WebCache API now supports SDCallbackQueue and may callback in non-main queue
Deprecate dispatch_main_async_safe, introduce two more policy .safeAsyncMainThread and .safeAsyncMainQueue for different use case
…e `SafeAsyncMainQueue`, others revert back to default value The implementation don't need complicated check, using object compare is enough
dreampiggy
changed the title
Deprecate dispatch_main_async_safe, introduce two more policy
Deprecate dispatch_main_async_safe, introduce two more policy .safeAsyncMainThread and .safeAsyncMainQueue for different use case.safeAsyncMainThread and .safeAsyncMainQueue for different use case, and defaults to MainThread
dreampiggy
changed the title
Deprecate dispatch_main_async_safe, introduce two more policy
Deprecate dispatch_main_async_safe, introduce two more policy .safeAsyncMainThread and .safeAsyncMainQueue for different use case, and defaults to MainThread.safeAsyncMainThread (for UIKit diffable data source) and .safeAsyncMainQueue (for most common cases)
This was referenced
Feb 20, 2025This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters