Tags: teufelaudio/CombineLongPolling
Tags
Fix retain cycle (#9) * Fix retain cycle STR: - have an app with a few long polls - put the app in background - wait a minute (t > long poll timeout) - resume the app Result: - 💣 memory allocation skyrockets * Move the dispacht-async call to the call site, get rid of some selfs in startPolling()
Fix retain cycle (#9) * Fix retain cycle STR: - have an app with a few long polls - put the app in background - wait a minute (t > long poll timeout) - resume the app Result: - 💣 memory allocation skyrockets * Move the dispacht-async call to the call site, get rid of some selfs in startPolling()
Fix "Semaphore object deallocated while in use"-crash 🤞 (#4) * Fix "Semaphore object deallocated while in use"-crash 🤞 * Fix the initial value as well (this has no practical impact, I just want to avoid having DispatchSemaphore(value:1) anywhere in the code)