refactor: use Bun.sleep instead of Promise setTimeout (#6620) · argszero/opencode@d8753cd · GitHub
Skip to content

Commit d8753cd

Browse files
authored
refactor: use Bun.sleep instead of Promise setTimeout (anomalyco#6620)
1 parent 2685de2 commit d8753cd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

github/index.ts

Lines changed: 1 addition & 1 deletion

packages/opencode/src/cli/cmd/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function handlePluginAuth(plugin: { auth: PluginAuth }, provider: string):
3636
const method = plugin.auth.methods[index]
3737

3838
// Handle prompts for all auth types
39-
await new Promise((resolve) => setTimeout(resolve, 10))
39+
await Bun.sleep(10)
4040
const inputs: Record<string, string> = {}
4141
if (method.prompts) {
4242
for (const prompt of method.prompts) {

packages/opencode/src/cli/cmd/github.ts

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)