We have function like this in swift 2.2 for printing a log message with the current running thread:
func MyLog(_ message: String) { if Thread.isMainThre
This method will work for both OperationQueue and DispatchQueue.
OperationQueue
DispatchQueue
func printCurrnetQueueName() { print(Thread.current.name!) }