nexus-agents - v2.80.0
    Preparing search index...

    Function sleep

    Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)

    • Creates a promise that resolves after the specified delay. Alias: delay (both names are exported for compatibility)

      Parameters

      • ms: number

        Delay in milliseconds

      Returns Promise<void>

      Promise that resolves after the delay

      await sleep(1000); // Wait 1 second
      await delay(500); // Wait 500ms (alias)