refactor: use Bun.sleep instead of Promise setTimeout (#6620)
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update (push) Has been cancelled

This commit is contained in:
rari404
2026-01-02 11:12:02 -06:00
committed by GitHub
parent 2685de2a33
commit d8753cda02
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ async function handlePluginAuth(plugin: { auth: PluginAuth }, provider: string):
const method = plugin.auth.methods[index]
// Handle prompts for all auth types
await new Promise((resolve) => setTimeout(resolve, 10))
await Bun.sleep(10)
const inputs: Record<string, string> = {}
if (method.prompts) {
for (const prompt of method.prompts) {
+1 -1
View File
@@ -348,7 +348,7 @@ export const GithubInstallCommand = cmd({
}
retries++
await new Promise((resolve) => setTimeout(resolve, 1000))
await Bun.sleep(1000)
} while (true)
s.stop("Installed GitHub app")