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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -