refactor: use Bun.sleep instead of Promise setTimeout (#6620)
This commit is contained in:
parent
2685de2a33
commit
d8753cda02
3 changed files with 3 additions and 3 deletions
|
|
@ -281,7 +281,7 @@ async function assertOpencodeConnected() {
|
|||
connected = true
|
||||
break
|
||||
} catch (e) {}
|
||||
await new Promise((resolve) => setTimeout(resolve, 300))
|
||||
await Bun.sleep(300)
|
||||
} while (retry++ < 30)
|
||||
|
||||
if (!connected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue