kkevsekk1 / AutoX

A UiAutomator on android, does not need root access(安卓平台上的JavaScript自动化工具)
Other
7.77k stars 1.84k forks source link

[求助]如何同步进行网络请求并设置timeout #690

Closed dsgler closed 10 months ago

dsgler commented 1 year ago

http.get()没有timeout参数。 使用axios无法用await将Promise转为Object。 我需要获取结果传入下一个函数,有没有什么好的解决方法。

kkevsekk1 commented 1 year ago

深入研究http对应的okhttp就知道了,你用另一个也不是问题😁 多研究即可

发送自我的盖乐世

-------- 原始信息 -------- 发件人: dsgler @.> 日期: 2023/10/7 23:21 (GMT+08:00) 收件人: kkevsekk1/AutoX @.> 抄送: Subscribed @.***> 主题: [kkevsekk1/AutoX] [求助]如何同步进行网络请求并设置timeout (Issue #690)

http.get()没有timeout参数。 使用axios无法用await将Promise转为Object。 我需要获取结果传入下一个函数,有没有什么好的解决方法。

— Reply to this email directly, view it on GitHubhttps://github.com/kkevsekk1/AutoX/issues/690, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD64RCDPI6P47UIX3ENYKW3X6FXPFAVCNFSM6AAAAAA5W72SFGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZTCMZYHE3TSMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

lanmingle commented 1 year ago

哈哈哈

github-actions[bot] commented 10 months ago

此lssue由于长期未活动已被自动关闭,如问题任然存在,请重新打开lssue