When some JS calls my Swift handler with a SWVBResponseCallBack, I want to use this callback after an async call returns. But the Swift compiler complains about "Closure use of non-escaping parameter...."
Therefore I propose to have SWVBHandler declared like this:
public typealias SWVBHandler = (AnyObject, @escaping SWVBResponseCallBack) -> Void
instead of
public typealias SWVBHandler = (AnyObject, SWVBResponseCallBack) -> Void
When some JS calls my Swift handler with a SWVBResponseCallBack, I want to use this callback after an async call returns. But the Swift compiler complains about "Closure use of non-escaping parameter...."
Therefore I propose to have SWVBHandler declared like this:
instead of