바로 그 질문입니다.기본적으로 DispatchQueue .serial 또는 .concurrent입니까?
let serial = DispatchQueue(label: "serial", attributes: .serial)
let concurrent = DispatchQueue(label: "concurrent", attributes: .concurrent)
let q = DispatchQueue(label: "q")
나는 어떤 속성은 내가 말해 줄 것이다 q
에 검사 할 수 있습니다 참조하십시오.
놀이터에서 PlaygroundPage.current.needsIndefiniteExecution = true
으로 실행하면 일련의 동작이 표시되지만 운동장 (비동기식 물건이있는 janky)이나 문서화되지 않은 동작에 의존하고 싶지는 않습니다.
누구나 문서에 대한 링크가있는 어려운 답변을 제공 할 수 있습니까?
소스 코드 링크는 정말 고맙습니다. xcode에서 cmd + 메서드 이름을 클릭했을 때 기본 param 구현을 보지 못했습니다. – SimplGy
@ SimplGy 도와 드리겠습니다 :) – Hamish