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

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -