비탈출 매개변수를 폐쇄적으로 사용하면 탈출할 수 있습니다. 프로토콜이 있습니다. enum DataFetchResult { case success(data: Data) case failure } protocol DataServiceType { func fetchData(location: String, completion: (DataFetchResult) -> (Void)) func cachedData(location: String) -> Data? } 구현 예를 사용하여: /// An implementation of DataServiceType protocol returning predefined results using arbitrary queue for asynchronyous mechanisms. /..