appwrite / sdk-for-apple

[READ-ONLY] Official Appwrite SDK for Apple Devices 🍎
BSD 3-Clause "New" or "Revised" License
102 stars 27 forks source link

🐛 Bug Report: Xcode Data race with realtime - swift - sdk #56

Closed NOAM9052 closed 6 months ago

NOAM9052 commented 10 months ago

👟 Reproduction steps

Download swift - appwrtie - sdk -> import appwrtie to some class and make subscription func with one of the subscriptions method inside the realtime sdk the same as in the Realtime doc (and put inside the channel/channels some channel no matter what) -> Turn on Xcode Thread sanitizer tool -> trigger the func no matter from where -> run the app and look inside the console you will see Data race error !

👍 Expected behavior

sync the threads properly without data race issue

👎 Actual Behavior

not sync the threads properly and have data race issue

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

4.0.2

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

stnguyen90 commented 10 months ago

Discord thread: https://discord.com/channels/564160730845151244/1190376621702660116