utils.ts 246 B

1234567
  1. /**
  2. * Since the AST manipulation is blocking, prompts will not get a
  3. * chance to be displayed unless we give a small async pause.
  4. */
  5. export async function pauseForPromptDisplay() {
  6. await new Promise(resolve => setTimeout(resolve, 100));
  7. }