UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

24 lines (23 loc) 721 B
/** * Async Utilities * * Centralized async/promise utilities for NeuroLink. * Provides common patterns like delays, timeouts, and retry logic. * * @example * ```typescript * import { delay, withTimeout, retry } from './utils/async/index.js'; * * // Simple delay * await delay(1000); * * // Timeout protection * const result = await withTimeout(fetchData(), 5000); * * // Retry with backoff * const data = await retry(() => unreliableAPI(), { maxRetries: 3 }); * ``` */ export { delay, sleep } from "./delay.js"; export { calculateBackoff, createRetry, DEFAULT_RETRY_OPTIONS, RetryExhaustedError, retry, } from "./retry.js"; export { TimeoutError, withTimeout, withTimeoutFn } from "./withTimeout.js";