{"action":"opened","issue":{"url":"https://api.github.com/repos/ShawnFoo/SwiftWebViewBridge/issues/10","repository_url":"https://api.github.com/repos/ShawnFoo/SwiftWebViewBridge","labels_url":"https://api.github.com/repos/ShawnFoo/SwiftWebViewBridge/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ShawnFoo/SwiftWebViewBridge/issues/10/comments","events_url":"https://api.github.com/repos/ShawnFoo/SwiftWebViewBridge/issues/10/events","html_url":"https://github.com/ShawnFoo/SwiftWebViewBridge/issues/10","id":189641760,"number":10,"title":"Allows to escape SWVBResponseCallBack","user":{"login":"sylvainlaurent","id":718370,"avatar_url":"https://avatars.githubusercontent.com/u/718370?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvainlaurent","html_url":"https://github.com/sylvainlaurent","followers_url":"https://api.github.com/users/sylvainlaurent/followers","following_url":"https://api.github.com/users/sylvainlaurent/following{/other_user}","gists_url":"https://api.github.com/users/sylvainlaurent/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvainlaurent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvainlaurent/subscriptions","organizations_url":"https://api.github.com/users/sylvainlaurent/orgs","repos_url":"https://api.github.com/users/sylvainlaurent/repos","events_url":"https://api.github.com/users/sylvainlaurent/events{/privacy}","received_events_url":"https://api.github.com/users/sylvainlaurent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T09:23:53Z","updated_at":"2016-11-16T09:23:53Z","closed_at":null,"body":"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....\"\r\n\r\nTherefore I propose to have SWVBHandler declared like this:\r\n```swift\r\npublic typealias SWVBHandler = (AnyObject, @escaping SWVBResponseCallBack) -> Void\r\n```\r\ninstead of \r\n```swift\r\npublic typealias SWVBHandler = (AnyObject, SWVBResponseCallBack) -> Void\r\n```\r\n"}}
{"actor":{"display_login":"sylvainlaurent"}}