How to get the current queue name? I mean the signature in the queue, for example com.example.myqueue. In Xcode 4, in the debugger, I see only _block_invoke_1. Thanks.
What about dispatch_queue_get_label ?
dispatch_queue_get_label
In Objective-C, you can write the label of the current queue with:
NSLog(@"%s", dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL));
In Swift (2.0):
print(String(UTF8String: dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL))!)
Source: https://habr.com/ru/post/945406/More articles:Why are the properties of the native data type not shown on their respective prototypes? - javascriptWhy am I allowed to have two indexes with the same name? - sqlHow to match horizontal ellipse (...) in php - phpA different background for each page? - htmlRecord which queue / thread method is running - multithreadingSELECT takes 100 ms; CREATE table as select - or - INSERT in select take 15 minutes - oracleAll program codes are loaded into text \ code section \ memory segment - cHow to get the contents of a temporary file through a form - ruby | fooobar.comCalculation of a quaternion for conversion between two 3D Cartesian coordinate systems - transformationWhy {?}} Doesn't work in src attributes? Why do I need ngSrc? - angularjsAll Articles