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
/// Follow async/sync using the correspond `dispatch_async`/`dispatch_sync` to dispatch block on queue
17
17
SDCallbackPolicyDispatch = 1,
18
18
/// Ignore any async/sync and just directly invoke `block` in current queue (without `dispatch_async`/`dispatch_sync`)
19
-
SDCallbackPolicyInvoke = 2
19
+
SDCallbackPolicyInvoke = 2,
20
+
/// Ensure callback in main queue and main thread, will do `dispatch_async` if the current queue is not main queue; else do invoke `block`. Never use `dispatch_sync`, suitable for UI-related work
21
+
SDCallbackPolicyMainAsyncSafe = 3
20
22
};
21
23
22
24
/// SDCallbackQueue is a wrapper used to control how the completionBlock should perform on queues, used by our `Cache`/`Manager`/`Loader`.
0 commit comments