I have a problem when call BChatSDK.core()?.threads(with: bThreadFilterPrivateThread, includeDeleted: false) if db have too many entities. It make app freeze because i must call this function in main thread.
I tried using DispatchQueue global but it make app crash with error : was mutated while being enumerated.
Please help!
I have a problem when call BChatSDK.core()?.threads(with: bThreadFilterPrivateThread, includeDeleted: false) if db have too many entities. It make app freeze because i must call this function in main thread. I tried using DispatchQueue global but it make app crash with error : was mutated while being enumerated. Please help!