ensureMainThread() function now calls sync dispatch, not async. The complexity of the app requires that no assumptions be made about the thread context, so this function is here to guard/protect against edge cases where a function was called off-main. For added safety, uses sync dispatch, in case the caller is expecting sync behaviour
ensureMainThread() function now calls sync dispatch, not async.
The complexity of the app requires that no assumptions be made about the thread context, so this function is here to guard/protect against edge cases where a function was called off-main.
For added safety, uses sync dispatch, in case the caller is expecting sync behaviour

brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,brave/browser-ios