我尝试将闭包参数记录到函数中:

/**
    sends the request out.

    - Parameter pzurl: request description including url, method, formdata.
 - Parameter responseProcessor: closure that's on success invokes
 - Parameter json: a json array or dictionary
 - Parameter timestamp: and the same `timestamp` that this function returns
 - parameter failure: closure is invoked when json could not be parsed or remote indicated failure
 - Returns: timestamp to identify responses
 */
internal static func processPZURL(pzurl: PZURL,
                                  responseProcessor:@escaping (_ json:JSON, _ timestamp: TimeInterval) -> (), failure:@escaping (PZError) -> ()) -> TimeInterval {

产生“没有描述”

我找不到关于如何更改它的描述

swift3 - 如何记录作为参数的闭包的参数-LMLPHP

Apple markup documentation is here

more documentation from NSHipster that does not address the closure woe

最佳答案

显然,自2017年1月以来,此问题已被打破(或从未在任何xcode中工作过):
https://bugs.swift.org/browse/SR-3693
所以我的问题似乎是最新版本的
How do you document the parameters of a function's closure parameter in Swift 3?
除了该问题的答案在xcode 9.2中不起作用
与苹果公司提起35881586

关于swift3 - 如何记录作为参数的闭包的参数,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47675488/

10-13 01:50
查看更多