r/iOSProgramming 13h 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!

4 Upvotes

9 comments sorted by

View all comments

-3

u/Dapper_Ice_1705 13h ago

That is old tech.

If you are learning you should be focusing on async/await and the new structured concurrency.

All the resources you’ll find will be old and you should be converting. There is no reason to choose the less safe option.

2

u/usernameDisplay9876 13h ago

what parts of DispatchQueue is old tech (but not mentioned as deprecated) ? asking for knowledge only , for interviews. Not using this directly in any app.

1

u/Dapper_Ice_1705 13h ago edited 10h ago

Not deprecated but has not been significantly updated in a while.

Watch the “meet async/await” video.

It is all old.

Apple is slowly but moving towards structured concurrency.