Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

(Concurrency) completionBlock executes on main thread #74

Open
DeepFriedPotato opened this issue Jul 23, 2014 · 3 comments
Open

(Concurrency) completionBlock executes on main thread #74

DeepFriedPotato opened this issue Jul 23, 2014 · 3 comments

Comments

@DeepFriedPotato
Copy link

From NSOperation Class Reference:
The exact execution context for your completion block is not guaranteed but is typically a secondary thread.

However, MCSwipeTableViewCell runs completionBlock on the main thread which might cause confusion.

@alikaragoz
Copy link
Owner

Hi @DeepFriedPotato, you are right it needs to be executed in another queue.
I need to take some time to fix this as well as other things reported on the tickets.
💋

@DeepFriedPotato
Copy link
Author

(Sorry for making this a bit like Stackoverflow, but) I'm new to iOS, and I'm wondering if this would constitute a workaround:

@DeepFriedPotato
Copy link
Author

I implemented a nsoperation queue inside the setSwipeGestureWithView:... method call.
Or should I use dispatch_async instead?
Are there anything inside the implementation of slidetableviewcell that might affect concurrency behavior?

my project

Thanks in advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants