I have code like this in Swift 2:
let attrs = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_UTILITY, 0)
let myQueue = dispatch_queue_create("com.example.serial-queue", attrs)
This doesn't compile in Swift 3, because dispatch_queue_attr_make_with_qos_class
and dispatch_queue_create
aren't available. How do I make a serial queue with a custom QoS class?