Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

336 B
Raw Blame
export function sleep(timeout: number) {
  return new Promise<void>((resolve) => {
    window.setTimeout(() => {
      resolve();
    }, timeout);
  });
}

export async function waitForFrames(n: number) {
  for (let i = 0; i < n; i++) {
    await new Promise<void>((resolve) =>
      requestAnimationFrame(() => resolve())
    );
  }
}