This pull request migrates the dispatch_async(dispatch_get_main_queue(), ^{}) calls from SERequestHandler to SEAPIRequestManager, since serializing JSON into respective objects was happening on the main queue and that was causing issues. Now, the serializing happens before the request's completion is called, and then the completion with serialized objects is dispatched to the main queue.
Reference: issue #87
This pull request migrates the
dispatch_async(dispatch_get_main_queue(), ^{})
calls fromSERequestHandler
toSEAPIRequestManager
, since serializing JSON into respective objects was happening on the main queue and that was causing issues. Now, the serializing happens before the request's completion is called, and then the completion with serialized objects is dispatched to the main queue.See the difference: before and after