swift - Best location to define Semaphores, DispatchQueues and DispatchGroups -


how share semaphores, dispatchqueues , dispatchgroups?

i can pass them while using or define them in shared location.

which 1 better , normal way?

is there better way?

update:

there semaphore 2 threads want use it. (one consumer , producer)

where define semaphore?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -