@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
10 lines • 499 B
text/typescript
/**
* Resolve after `ms`, or immediately when `signal` aborts.
*
* When a `signal` is passed the abort listener is always removed so repeated
* calls do not accumulate listeners on a long-lived signal. Resolves (rather
* than rejects) on abort — callers treat abort as "wake up early," not as a
* failure; callers that want to unwind should check the signal themselves.
*/
export declare const sleep: (ms: number, signal?: AbortSignal) => Promise<void>;
//# sourceMappingURL=sleep.d.mts.map