You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Ignore any async/sync and just directly invoke `block` in current queue (without `dispatch_async`/`dispatch_sync`)
19
19
SDCallbackPolicyInvoke = 2,
20
-
/// Ensure callback in main queue (no gurantee on main thread). Do `dispatch_async` if the current queue is not main queue; else do invoke `block`. Never use `dispatch_sync`, suitable for general UI-related code
21
-
SDCallbackPolicySafeAsyncMainQueue = 3,
22
20
/// Ensure callback in main thread. Do `dispatch_async` if the `NSThread.isMainTrhead == true` ; else do invoke `block`. Never use `dispatch_sync`, suitable for special UI-related code
23
-
SDCallbackPolicySafeAsyncMainThread = 4,
21
+
SDCallbackPolicySafeAsyncMainThread = 3,
24
22
};
25
23
26
24
/// SDCallbackQueue is a wrapper used to control how the completionBlock should perform on queues, used by our `Cache`/`Manager`/`Loader`.
27
25
/// Useful when you call SDWebImage in non-main queue and want to avoid it callback into main queue, which may cause issue.
28
26
@interfaceSDCallbackQueue : NSObject
29
27
30
28
/// The main queue. This is the default value, has the same effect when passing `nil` to `SDWebImageContextCallbackQueue`
31
-
/// The policy defaults to `SDCallbackPolicySafeAsyncMainQueue`
29
+
/// The policy defaults to `SDCallbackPolicySafeAsyncMainThread`
0 commit comments