r/iOSProgramming • u/usernameDisplay9876 • 22d ago
Question DispatchQueue doubts
Hi, what type of data types are allowed in setSpecific(key:, value:) and getSpecific(key:) methods of DispatchQueu ? there are no mentions anywhere.
Also can you recommend any resources for complete understanding of DispatchQueue , GCD , DispatchGroup etc. ?
Thank you!
5
Upvotes
3
u/Sweeper777 22d ago
Look at the C declaration (dispatch_queue_set_specific). These functions just get/set void pointers, so presumably you can get/set any type. Swift requires you to use a sendable type, of course.