phimage/Erik

Runloop blocks the current thread

ahmed-shehata opened this issue · 1 comments

As stated in Apple Docs:

The RunLoop class is generally not considered to be thread-safe and its methods should only be called within the context of the current thread. You should never try to call the methods of an RunLoop object running in a different thread, as doing so might cause unexpected results.

I have noticed that the completion handler handleLoadRequestCompletion sometimes fails to continue sporadically, I have traced it down to the Runloop func, is this even needed in an iOS setup?

I have created a PR #35