# Function sleep

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

- sleep(ms: number): Promise<void>

  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

  #### Example

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

  - Defined in packages/nexus-agents/src/utils/async-utils.ts:30