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

Client.init()方法定义修改建议 #2

Closed
acyumi opened this issue Oct 3, 2022 · 0 comments · Fixed by #3
Closed

Client.init()方法定义修改建议 #2

acyumi opened this issue Oct 3, 2022 · 0 comments · Fixed by #3

Comments

@acyumi
Copy link

acyumi commented Oct 3, 2022

Client.ini()方法
String Function()? tokenGetter
这个入参应该定义成返回Future吧?
Future<String> Function()? tokenGetter
要不然当tokenGetter声明成异步方法,加上async之后,
要把返回值定义成Future就不符合入参要求了,
然后自定义的tokenGetter内部就被限制使用await了

@huhx huhx linked a pull request Oct 10, 2022 that will close this issue
@huhx huhx closed this as completed in #3 Oct 10, 2022
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

Successfully merging a pull request may close this issue.

1 participant