Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

原生异步函数如何支持重载? #135

Open
yanghl opened this issue Apr 8, 2021 · 0 comments
Open

原生异步函数如何支持重载? #135

yanghl opened this issue Apr 8, 2021 · 0 comments

Comments

@yanghl
Copy link

yanghl commented Apr 8, 2021

@objc func testAsyn( _ arg:String, block: (String, Bool)->Void) {
block(String(format:"%@[Swift async call:%@]", arg, "test"), true)
}

@objc func testAsyn( _ arg:String, handler: (String, Bool)->Void) {
handler(String(format:"%@[Swift async call:%@]", arg, "test"), true)
}

比如这种情况 第二个函数js永远无法调用成功了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant