jverify-flutter-plugin icon indicating copy to clipboard operation
jverify-flutter-plugin copied to clipboard

enhance: 调用MethodChannel的方法都返回Future

Open yohom opened this issue 4 years ago • 5 comments

目前一部分方法没有使用MethodChannel的返回值,导致所有调用都是异步的,无法使用await保证执行顺序。

yohom avatar Apr 19 '21 13:04 yohom

治标不治本,原生没有 result。

AlexV525 avatar Apr 20 '21 16:04 AlexV525

那原生为什么不调result?

yohom avatar Apr 21 '21 01:04 yohom

好问题啊,你怎么不问极光的人呢

AlexV525 avatar Apr 21 '21 01:04 AlexV525

那你是极光的人吗

yohom avatar Apr 21 '21 04:04 yohom

🤣 你怕不是误解了什么。我想表达的意思就是:你的 PR 白 PR 了,因为原生没有 result,你的 future query await 根本保证不了顺序,反而由于没有 result 的原因,所有的 future 都会被阻塞。

AlexV525 avatar Apr 21 '21 04:04 AlexV525