05-14 04:14
Notice
Recent Posts
Recent Comments
05-14 04:14
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

pear

[iOS]DispatchQueue.global 본문

iOS/swift

[iOS]DispatchQueue.global

pearlab 2023. 3. 8. 12:59

apple devloment

https://developer.apple.com/documentation/dispatch/dispatchqos

 

// 유저와 직접 응답형 : UI관련

DispatchQueue.global(qos: .userInteractive)

 

// 비동기 처리 : 내부 데이터베이스 조회

DispatchQueue.global(qos: .userInitiated)

 

// 일반적인 작업

DispatchQueue.global()

 

// ProgressIndicator 함께 지속적으로 사용되는 작업 : 지속적인 데이터 feed, Networking

DispatchQueue.global(qos: .utility)

 

// 사용자가 직접적으로 인지하지 않는 부분 : 데이터베이스 유지, 데이터 정리 등 - 속도보다는 에너지 효율성 중시

DispatchQueue.global(qos: .background)

 

// 사용하지 않음 absence of a quality-of-service API

DispatchQueue.global(qos: .unspecified)